Skip to content

Commit

Permalink
Clippy.
Browse files Browse the repository at this point in the history
  • Loading branch information
Narsil committed Aug 9, 2024
1 parent d84b98b commit 379e165
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backends/v3/src/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ impl BackendV3 {
speculate: u32,
) -> Self {
let attention = if let Ok(attention) = std::env::var("ATTENTION") {
attention.parse().expect(&format!("Invalid attention was specified :`{attention}`"))
attention.parse().unwrap_or_else(|_| panic!("Invalid attention was specified :`{attention}`"))
} else {
Attention::Paged
};
Expand Down

0 comments on commit 379e165

Please sign in to comment.