PR #2842 #482
codeql
on: dynamic
Matrix: analyze
Annotations
3 warnings
|
missing documentation for a method:
src/directory/composite_file.rs#L170
warning: missing documentation for a method
--> src/directory/composite_file.rs:170:5
|
170 | pub fn space_usage(&self, schema: &Schema) -> PerFieldSpaceUsage {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: the lint level is defined here
--> src/lib.rs:4:9
|
4 | #![warn(missing_docs)]
| ^^^^^^^^^^^^
|
|
this operation has no effect:
src/termdict/fst_termdict/term_info_store.rs#L52
warning: this operation has no effect
--> src/termdict/fst_termdict/term_info_store.rs:52:56
|
52 | u64::SIZE_IN_BYTES + TermInfo::SIZE_IN_BYTES + 3 * u8::SIZE_IN_BYTES;
| ^^^^^^^^^^^^^^^^^^^^^ help: consider reducing it to: `3`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.93.0/index.html#identity_op
= note: `#[warn(clippy::identity_op)]` on by default
|
|
this assertion has a constant value:
src/indexer/segment_updater.rs#L651
warning: this assertion has a constant value
--> src/indexer/segment_updater.rs:651:33
|
651 | ... assert!(!cfg!(test), "Merge failed.");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider moving this into a const block: `const { assert!(..) }`
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.93.0/index.html#assertions_on_constants
= note: `#[warn(clippy::assertions_on_constants)]` on by default
|