build(deps): bump arboard from 3.2.1 to 3.3.0 #99
GitHub Actions / clippy
failed
Nov 27, 2023 in 0s
clippy
2 errors
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 2 |
Warning | 0 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.74.0 (79e9716c9 2023-11-13)
- cargo 1.74.0 (ecb9851af 2023-10-18)
- clippy 0.1.74 (79e9716 2023-11-13)
Annotations
Check failure on line 210 in src/label.rs
github-actions / clippy
use of `format!` to build up a string from an iterator
error: use of `format!` to build up a string from an iterator
--> src/label.rs:207:23
|
207 | self.binary = bytes
| _______________________^
208 | | .iter()
209 | | .map(|byte| format!("{byte:08b}"))
210 | | .collect::<String>()
| |________________________________^
|
help: call `fold` instead
--> src/label.rs:209:14
|
209 | .map(|byte| format!("{byte:08b}"))
| ^^^
help: ... and use the `write!` macro here
--> src/label.rs:209:25
|
209 | .map(|byte| format!("{byte:08b}"))
| ^^^^^^^^^^^^^^^^^^^^^
= note: this can be written more efficiently by appending to a `String` directly
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#format_collect
= note: `-D clippy::format-collect` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::format_collect)]`
Check failure on line 210 in src/label.rs
github-actions / clippy
use of `format!` to build up a string from an iterator
error: use of `format!` to build up a string from an iterator
--> src/label.rs:207:23
|
207 | self.binary = bytes
| _______________________^
208 | | .iter()
209 | | .map(|byte| format!("{byte:08b}"))
210 | | .collect::<String>()
| |________________________________^
|
help: call `fold` instead
--> src/label.rs:209:14
|
209 | .map(|byte| format!("{byte:08b}"))
| ^^^
help: ... and use the `write!` macro here
--> src/label.rs:209:25
|
209 | .map(|byte| format!("{byte:08b}"))
| ^^^^^^^^^^^^^^^^^^^^^
= note: this can be written more efficiently by appending to a `String` directly
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#format_collect
= note: `-D clippy::format-collect` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::format_collect)]`
Loading