clippy
4 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 4 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.84.0-nightly (9322d183f 2024-10-14)
- cargo 1.84.0-nightly (15fbd2f60 2024-10-08)
- clippy 0.1.83 (9322d18 2024-10-14)
Annotations
Check warning on line 28 in ashen/src/asset/pack_file.rs
github-actions / clippy
docs for function returning `Result` missing `# Errors` section
warning: docs for function returning `Result` missing `# Errors` section
--> ashen/src/asset/pack_file.rs:28:5
|
28 | pub fn new(input: &[u8]) -> Result<Self> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
= note: `#[warn(clippy::missing_errors_doc)]` implied by `#[warn(clippy::pedantic)]`
Check warning on line 18 in ashen/src/asset/color_map.rs
github-actions / clippy
docs for function which may panic missing `# Panics` section
warning: docs for function which may panic missing `# Panics` section
--> ashen/src/asset/color_map.rs:18:5
|
18 | pub fn from_12_bit(color: u16) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: first possible panic found here
--> ashen/src/asset/color_map.rs:20:9
|
20 | assert!(color <= 0xFFF, "12 bit color is smaller than 0xFFF");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_panics_doc
note: the lint level is defined here
--> ashen/src/lib.rs:1:9
|
1 | #![warn(clippy::pedantic)]
| ^^^^^^^^^^^^^^^^
= note: `#[warn(clippy::missing_panics_doc)]` implied by `#[warn(clippy::pedantic)]`
Check warning on line 3 in ashen/src/asset/pack_file/directory.rs
github-actions / clippy
unused import: `super::PackFile`
warning: unused import: `super::PackFile`
--> ashen/src/asset/pack_file/directory.rs:3:5
|
3 | use super::PackFile;
| ^^^^^^^^^^^^^^^
Check warning on line 1 in ashen/src/asset/pack_file/directory.rs
github-actions / clippy
unused imports: `HashMap`, `VecDeque`, `ffi`, `io`, and `path::Path`
warning: unused imports: `HashMap`, `VecDeque`, `ffi`, `io`, and `path::Path`
--> ashen/src/asset/pack_file/directory.rs:1:25
|
1 | use std::{collections::{HashMap, VecDeque}, ffi, io, path::Path};
| ^^^^^^^ ^^^^^^^^ ^^^ ^^ ^^^^^^^^^^
|
note: the lint level is defined here
--> ashen/src/lib.rs:18:9
|
18 | #![warn(unused_imports)]
| ^^^^^^^^^^^^^^