diff options
| author | mo8it <mo8it@proton.me> | 2025-05-12 20:31:13 +0200 |
|---|---|---|
| committer | mo8it <mo8it@proton.me> | 2025-05-12 20:31:13 +0200 |
| commit | 48bab776096cde6ddd6547dfdb7d879a49c3edfe (patch) | |
| tree | 5cc2dec23ddd9c3b5755732189ff59591e15b28e /solutions/22_clippy | |
| parent | a063bcfb4cf5e7e6cb98a8738a73aee8b7a57c7a (diff) | |
Apply Clippy lints
Diffstat (limited to 'solutions/22_clippy')
| -rw-r--r-- | solutions/22_clippy/clippy3.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/solutions/22_clippy/clippy3.rs b/solutions/22_clippy/clippy3.rs index b7eaa57..81f381e 100644 --- a/solutions/22_clippy/clippy3.rs +++ b/solutions/22_clippy/clippy3.rs @@ -15,7 +15,7 @@ fn main() { -1, -2, -3, -4, -5, -6, ]; - println!("My array! Here it is: {:?}", my_arr); + println!("My array! Here it is: {my_arr:?}"); let mut my_empty_vec = vec![1, 2, 3, 4, 5]; // `resize` mutates a vector instead of returning a new one. @@ -27,5 +27,5 @@ fn main() { let mut value_b = 66; // Use `mem::swap` to correctly swap two values. mem::swap(&mut value_a, &mut value_b); - println!("value a: {}; value b: {}", value_a, value_b); + println!("value a: {value_a}; value b: {value_b}"); } |
