Version 0.28.2 #228
clippy
13 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 13 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.83.0 (90b35a623 2024-11-26)
- cargo 1.83.0 (5ffbef321 2024-10-29)
- clippy 0.1.83 (90b35a6 2024-11-26)
Annotations
Check warning on line 107 in tests/tools/tls.rs
github-actions / clippy
method `lazy_read` is never used
warning: method `lazy_read` is never used
--> tests/tools/tls.rs:107:8
|
106 | impl LazyFile {
| ------------- method in this implementation
107 | fn lazy_read(&mut self, buf: &mut [u8]) -> io::Result<usize> {
| ^^^^^^^^^
Check warning on line 101 in tests/tools/tls.rs
github-actions / clippy
struct `LazyFile` is never constructed
warning: struct `LazyFile` is never constructed
--> tests/tools/tls.rs:101:8
|
101 | struct LazyFile {
| ^^^^^^^^
|
= note: `#[warn(dead_code)]` on by default
Check warning on line 230 in src/parsing/buffers.rs
github-actions / clippy
usage of a legacy numeric method
warning: usage of a legacy numeric method
--> src/parsing/buffers.rs:230:55
|
230 | read_line_strict(&mut reader, &mut line, u64::max_value()).ok(),
| ^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
help: use the associated constant instead
|
230 | read_line_strict(&mut reader, &mut line, u64::MAX).ok(),
| ~~~
Check warning on line 218 in src/parsing/buffers.rs
github-actions / clippy
usage of a legacy numeric method
warning: usage of a legacy numeric method
--> src/parsing/buffers.rs:218:55
|
218 | read_line_strict(&mut reader, &mut line, u64::max_value()).ok(),
| ^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
help: use the associated constant instead
|
218 | read_line_strict(&mut reader, &mut line, u64::MAX).ok(),
| ~~~
Check warning on line 204 in src/parsing/buffers.rs
github-actions / clippy
usage of a legacy numeric method
warning: usage of a legacy numeric method
--> src/parsing/buffers.rs:204:55
|
204 | read_line_strict(&mut reader, &mut line, u64::max_value())
| ^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
help: use the associated constant instead
|
204 | read_line_strict(&mut reader, &mut line, u64::MAX)
| ~~~
Check warning on line 194 in src/parsing/buffers.rs
github-actions / clippy
usage of a legacy numeric method
warning: usage of a legacy numeric method
--> src/parsing/buffers.rs:194:62
|
194 | assert_eq!(read_line_strict(&mut reader, &mut line, u64::max_value()).ok(), Some(2));
| ^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
help: use the associated constant instead
|
194 | assert_eq!(read_line_strict(&mut reader, &mut line, u64::MAX).ok(), Some(2));
| ~~~
Check warning on line 183 in src/parsing/buffers.rs
github-actions / clippy
usage of a legacy numeric method
warning: usage of a legacy numeric method
--> src/parsing/buffers.rs:183:55
|
183 | read_line_strict(&mut reader, &mut line, u64::max_value()).ok(),
| ^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
help: use the associated constant instead
|
183 | read_line_strict(&mut reader, &mut line, u64::MAX).ok(),
| ~~~
Check warning on line 161 in src/parsing/buffers.rs
github-actions / clippy
usage of a legacy numeric method
warning: usage of a legacy numeric method
--> src/parsing/buffers.rs:161:55
|
161 | assert_eq!(read_line(&mut reader, &mut line, u64::max_value()).ok(), Some(1));
| ^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
help: use the associated constant instead
|
161 | assert_eq!(read_line(&mut reader, &mut line, u64::MAX).ok(), Some(1));
| ~~~
Check warning on line 152 in src/parsing/buffers.rs
github-actions / clippy
usage of a legacy numeric method
warning: usage of a legacy numeric method
--> src/parsing/buffers.rs:152:55
|
152 | assert_eq!(read_line(&mut reader, &mut line, u64::max_value()).ok(), Some(2));
| ^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
help: use the associated constant instead
|
152 | assert_eq!(read_line(&mut reader, &mut line, u64::MAX).ok(), Some(2));
| ~~~
Check warning on line 143 in src/parsing/buffers.rs
github-actions / clippy
usage of a legacy numeric method
warning: usage of a legacy numeric method
--> src/parsing/buffers.rs:143:55
|
143 | assert_eq!(read_line(&mut reader, &mut line, u64::max_value()).ok(), Some(7));
| ^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
help: use the associated constant instead
|
143 | assert_eq!(read_line(&mut reader, &mut line, u64::MAX).ok(), Some(7));
| ~~~
Check warning on line 140 in src/parsing/buffers.rs
github-actions / clippy
usage of a legacy numeric method
warning: usage of a legacy numeric method
--> src/parsing/buffers.rs:140:55
|
140 | assert_eq!(read_line(&mut reader, &mut line, u64::max_value()).ok(), Some(7));
| ^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
help: use the associated constant instead
|
140 | assert_eq!(read_line(&mut reader, &mut line, u64::MAX).ok(), Some(7));
| ~~~
Check warning on line 131 in src/parsing/buffers.rs
github-actions / clippy
usage of a legacy numeric method
warning: usage of a legacy numeric method
--> src/parsing/buffers.rs:131:55
|
131 | assert_eq!(read_line(&mut reader, &mut line, u64::max_value()).ok(), Some(6));
| ^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
help: use the associated constant instead
|
131 | assert_eq!(read_line(&mut reader, &mut line, u64::MAX).ok(), Some(6));
| ~~~
Check warning on line 128 in src/parsing/buffers.rs
github-actions / clippy
usage of a legacy numeric method
warning: usage of a legacy numeric method
--> src/parsing/buffers.rs:128:55
|
128 | assert_eq!(read_line(&mut reader, &mut line, u64::max_value()).ok(), Some(6));
| ^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
= note: `#[warn(clippy::legacy_numeric_constants)]` on by default
help: use the associated constant instead
|
128 | assert_eq!(read_line(&mut reader, &mut line, u64::MAX).ok(), Some(6));
| ~~~