Skip to content

Commit bb7bd12

Browse files
committed
remove syntax highlighting
1 parent 61a9311 commit bb7bd12

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

posts/2023-04-20-Rust-1.69.0.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,17 @@ Rust 1.29.0 added the `cargo fix` subcommand to automatically fix some simple co
2727

2828
In order to draw more attention to these increased capabilities, Cargo will now suggest running `cargo fix` or `cargo clippy --fix` when it detects warnings that are automatically fixable:
2929

30-
warning: unused import: `std::hash::Hash`
31-
--> src/main.rs:1:5
32-
|
33-
1 | use std::hash::Hash;
34-
| ^^^^^^^^^^^^^^^
35-
|
36-
= note: `#[warn(unused_imports)]` on by default
37-
38-
warning: `foo` (bin "foo") generated 1 warning (run `cargo fix --bin "foo"` to apply 1 suggestion)
30+
```text
31+
warning: unused import: `std::hash::Hash`
32+
--> src/main.rs:1:5
33+
|
34+
1 | use std::hash::Hash;
35+
| ^^^^^^^^^^^^^^^
36+
|
37+
= note: `#[warn(unused_imports)]` on by default
38+
39+
warning: `foo` (bin "foo") generated 1 warning (run `cargo fix --bin "foo"` to apply 1 suggestion)
40+
```
3941

4042
Note that the full Cargo invocation shown above is only necessary if you want to precisely apply fixes to a single crate. If you want to apply fixes to all the default members of a workspace, then a simple `cargo fix` (with no additional arguments) will suffice.
4143

0 commit comments

Comments
 (0)