This lint was downgraded to `pedantic` in part because rust-analyzer was not fully supporting it at the time per #10087. The support has been added over [a year ago](https://github.com/rust-lang/rust-analyzer/issues/11260), so seems like this should be back to style. Another source of the initial frustration was fixed since then as well - this lint does not trigger by default in case only some arguments can be inlined.
11 lines
181 B
Rust
11 lines
181 B
Rust
//@ check-pass
|
|
|
|
#![feature(stmt_expr_attributes)]
|
|
#![allow(clippy::uninlined_format_args)]
|
|
|
|
fn main() {
|
|
#[clippy::author]
|
|
for i in 0..1 {
|
|
println!("{}", i);
|
|
}
|
|
}
|