Skip to content

Commit 7d8bce8

Browse files
committed
Fix clippy::uninlined_format_args warning
``` error: variables can be used directly in the `format!` string --> examples/linux-inotify.rs:55:17 | 55 | println!("{:?}", event); | ^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args = note: `-D clippy::uninlined-format-args` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::uninlined_format_args)]` help: change this to | 55 - println!("{:?}", event); 55 + println!("{event:?}"); | ```
1 parent 0c41ab4 commit 7d8bce8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/linux-inotify.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ fn main() -> std::io::Result<()> {
5252
// Wait for events in a loop and print them on the screen.
5353
loop {
5454
for event in unsafe { inotify.read_with_mut(read_op).await? } {
55-
println!("{:?}", event);
55+
println!("{event:?}");
5656
}
5757
}
5858
})

0 commit comments

Comments
 (0)