Merge pull request #3897 from nyurik/redirect-lints

Inline fmt lints for `redirects/`
This commit is contained in:
Chris Krycho 2024-04-19 13:48:13 -06:00 committed by GitHub
commit 0b4e00345c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 5 additions and 5 deletions

View File

@ -7,7 +7,7 @@
```rust
let b = Box::new(5);
println!("b = {}", b);
println!("b = {b}");
```
---

View File

@ -11,7 +11,7 @@ let v1 = vec![1, 2, 3];
let v1_iter = v1.iter();
for val in v1_iter {
println!("Got: {}", val);
println!("Got: {val}");
}
```

View File

@ -11,7 +11,7 @@
// |
let r = &x; // --+--+-- 'a
// | |
println!("r: {}", r); // | |
println!("r: {r}"); // | |
// --+ |
} // -----+
```

View File

@ -6,9 +6,9 @@
```rust
let mut x = 5;
println!("The value of x is: {}", x);
println!("The value of x is: {x}");
x = 6;
println!("The value of x is: {}", x);
println!("The value of x is: {x}");
```
---