mirror of https://github.com/rust-lang/book
Inline fmt lints for `redirects/`
I couldn't find any documentation of how `redirects/` dir is being used, but fixed inlined format args for consistency
This commit is contained in:
parent
8a79f3e15d
commit
c13271897d
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
let b = Box::new(5);
|
let b = Box::new(5);
|
||||||
println!("b = {}", b);
|
println!("b = {b}");
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
|
@ -11,7 +11,7 @@ let v1 = vec![1, 2, 3];
|
||||||
let v1_iter = v1.iter();
|
let v1_iter = v1.iter();
|
||||||
|
|
||||||
for val in v1_iter {
|
for val in v1_iter {
|
||||||
println!("Got: {}", val);
|
println!("Got: {val}");
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
// |
|
// |
|
||||||
let r = &x; // --+--+-- 'a
|
let r = &x; // --+--+-- 'a
|
||||||
// | |
|
// | |
|
||||||
println!("r: {}", r); // | |
|
println!("r: {r}"); // | |
|
||||||
// --+ |
|
// --+ |
|
||||||
} // -----+
|
} // -----+
|
||||||
```
|
```
|
||||||
|
|
|
@ -6,9 +6,9 @@
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
let mut x = 5;
|
let mut x = 5;
|
||||||
println!("The value of x is: {}", x);
|
println!("The value of x is: {x}");
|
||||||
x = 6;
|
x = 6;
|
||||||
println!("The value of x is: {}", x);
|
println!("The value of x is: {x}");
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
Loading…
Reference in New Issue