Bump actions/checkout from 3 to 4 #8
clippy
5 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 5 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.72.0 (5680fa18f 2023-08-23)
- cargo 1.72.0 (103a7ff2e 2023-08-15)
- clippy 0.1.72 (5680fa1 2023-08-23)
Annotations
Check warning on line 265 in src/sodium.rs
github-actions / clippy
casting to the same type is unnecessary (`usize` -> `usize`)
warning: casting to the same type is unnecessary (`usize` -> `usize`)
--> src/sodium.rs:265:51
|
265 | let mut result = Vec::<u8>::with_capacity(subkey_len as usize);
| ^^^^^^^^^^^^^^^^^^^ help: try: `subkey_len`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
= note: `#[warn(clippy::unnecessary_cast)]` on by default
Check warning on line 262 in src/sodium.rs
github-actions / clippy
manual `RangeInclusive::contains` implementation
warning: manual `RangeInclusive::contains` implementation
--> src/sodium.rs:262:17
|
262 | assert!(subkey_len >= 16 && subkey_len <= 64);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `(16..=64).contains(&subkey_len)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains
= note: `#[warn(clippy::manual_range_contains)]` on by default
Check warning on line 148 in src/sodium.rs
github-actions / clippy
needless `fn main` in doctest
warning: needless `fn main` in doctest
--> src/sodium.rs:148:8
|
148 | /// use tablesalt::sodium::{self, SecretStreamTag};
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
Check warning on line 17 in src/lib.rs
github-actions / clippy
needless `fn main` in doctest
warning: needless `fn main` in doctest
--> src/lib.rs:17:4
|
17 | //! use tablesalt::sodium;
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
Check warning on line 5 in src/lib.rs
github-actions / clippy
needless `fn main` in doctest
warning: needless `fn main` in doctest
--> src/lib.rs:5:4
|
5 | //! use tablesalt::sodium;
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default