Skip to content

Commit

Permalink
Ignore uninlined_format_args pedantic clippy lint in test
Browse files Browse the repository at this point in the history
    error: variables can be used directly in the `format!` string
      --> tests/test_expr.rs:44:43
       |
    44 |             .map_or_else(String::new, |s| format!("; did you mean '{}'?", s)),
       |                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
       |
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
       |
    44 -             .map_or_else(String::new, |s| format!("; did you mean '{}'?", s)),
    44 +             .map_or_else(String::new, |s| format!("; did you mean '{s}'?")),
       |
  • Loading branch information
dtolnay committed Sep 2, 2023
1 parent ae642d1 commit de58088
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_expr.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#![allow(clippy::iter_cloned_collect, clippy::option_if_let_else)]
#![allow(
clippy::iter_cloned_collect,
clippy::option_if_let_else,
clippy::uninlined_format_args
)]

use std::fmt::Display;
use thiserror::Error;
Expand Down

0 comments on commit de58088

Please sign in to comment.