Skip to content

Commit 8e3e64d

Browse files
committed
Allow uninlined variables (ignore Clippy)
As of 1.66, Clippy lints on `"{}", d` instead of `"{d}"`. However, this behavior is only available as of 1.58- which postdates the 2021 edition (launched in 1.56). Ignore the lint, to maintain a lower minimum supported Rust version.
1 parent 7a9817c commit 8e3e64d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/build/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,12 @@ Following, we list all of the [base units](#base-units), [derived units](#derive
118118
}
119119

120120
impl fmt::Display for System {
121+
// As of 1.66, Clippy lints on `"{}", d` instead of `"{d}"`.
122+
// However, this behavior is only available as of 1.58-
123+
// which postdates the 2021 edition (launched in 1.56).
124+
//
125+
// Ignore the lint, to maintain a lower minimum supported Rust version.
126+
#[allow(clippy::uninlined_format_args)]
121127
fn fmt(&self, f: &mut fmt::Formatter) -> Result<(), fmt::Error> {
122128
writeln!(f, "/**\n{}\n", self.doc_prelude)?;
123129

0 commit comments

Comments
 (0)