GitHub Actions / clippy
failed
Oct 30, 2023 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.75.0-nightly (608e9682f 2023-10-29)
- cargo 1.75.0-nightly (708383d62 2023-10-27)
- clippy 0.1.75 (608e968 2023-10-29)
Annotations
Check failure on line 154 in cosmos_client/src/ui/hotbar.rs
github-actions / clippy
useless use of `format!`
error: useless use of `format!`
--> cosmos_client/src/ui/hotbar.rs:154:45
|
154 | ... .unwrap_or(&format!("{}", items.from_numeric_id(is.item_id()).unlocalized_name()))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `items.from_numeric_id(is.item_id()).unlocalized_name().to_string()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
= note: `-D clippy::useless-format` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::useless_format)]`
Loading