Skip to content

Commit 0b4e003

Browse files
authored
Merge pull request #3897 from nyurik/redirect-lints
Inline fmt lints for `redirects/`
2 parents 8a79f3e + c132718 commit 0b4e003

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

redirects/choosing-your-guarantees.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
88
```rust
99
let b = Box::new(5);
10-
println!("b = {}", b);
10+
println!("b = {b}");
1111
```
1212

1313
---

redirects/iterators.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ let v1 = vec![1, 2, 3];
1111
let v1_iter = v1.iter();
1212

1313
for val in v1_iter {
14-
println!("Got: {}", val);
14+
println!("Got: {val}");
1515
}
1616
```
1717

redirects/lifetimes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// |
1212
let r = &x; // --+--+-- 'a
1313
// | |
14-
println!("r: {}", r); // | |
14+
println!("r: {r}"); // | |
1515
// --+ |
1616
} // -----+
1717
```

redirects/mutability.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
77
```rust
88
let mut x = 5;
9-
println!("The value of x is: {}", x);
9+
println!("The value of x is: {x}");
1010
x = 6;
11-
println!("The value of x is: {}", x);
11+
println!("The value of x is: {x}");
1212
```
1313

1414
---

0 commit comments

Comments
 (0)