cooling_device: add persistency #231
GitHub Actions / clippy
failed
Jul 25, 2024 in 0s
clippy
1 error
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 1 |
Warning | 0 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.79.0 (129f3b996 2024-06-10)
- cargo 1.79.0 (ffa9cf99a 2024-06-03)
- clippy 0.1.79 (129f3b9 2024-06-10)
Annotations
Check failure on line 38 in src/app/cooling_device.rs
github-actions / clippy
mismatched types
error[E0308]: mismatched types
--> src/app/cooling_device.rs:38:84
|
38 | if let Some(name) = is_system_fan(&device_path).map(|n| n.replace('-', ' ')) {
| ------- ^^^ expected `&str`, found `char`
| |
| arguments to this method are incorrect
|
note: method defined here
--> /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/alloc/src/str.rs:271:12
help: if you meant to write a string literal, use double quotes
|
38 | if let Some(name) = is_system_fan(&device_path).map(|n| n.replace('-', " ")) {
| ~ ~
Loading