Fix clippy warnings #1
GitHub Actions / clippy
failed
Nov 8, 2023 in 0s
clippy
4 errors
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 4 |
Warning | 0 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.73.0 (cc66ad468 2023-10-03)
- cargo 1.73.0 (9c4383fb5 2023-08-26)
- clippy 0.1.73 (cc66ad46 2023-10-03)
Annotations
Check failure on line 123 in src/snippets.rs
github-actions / clippy
use of `or_insert_with` to construct default value
error: use of `or_insert_with` to construct default value
--> src/snippets.rs:123:10
|
123 | .or_insert_with(Vec::new)
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
= note: `-D clippy::unwrap-or-default` implied by `-D warnings`
Check failure on line 123 in src/snippets.rs
github-actions / clippy
use of `or_insert_with` to construct default value
error: use of `or_insert_with` to construct default value
--> src/snippets.rs:123:10
|
123 | .or_insert_with(Vec::new)
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
= note: `-D clippy::unwrap-or-default` implied by `-D warnings`
Check failure on line 223 in src/output.rs
github-actions / clippy
the borrowed expression implements the required traits
error: the borrowed expression implements the required traits
--> src/output.rs:223:43
|
223 | let mut index_file = File::create(&dir.join("index.html"))?;
| ^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `dir.join("index.html")`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `-D clippy::needless-borrow` implied by `-D warnings`
Check failure on line 223 in src/output.rs
github-actions / clippy
the borrowed expression implements the required traits
error: the borrowed expression implements the required traits
--> src/output.rs:223:43
|
223 | let mut index_file = File::create(&dir.join("index.html"))?;
| ^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `dir.join("index.html")`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `-D clippy::needless-borrow` implied by `-D warnings`
Loading