Added sentry support. #201
clippy
5 errors
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 5 |
Warning | 0 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.79.0 (129f3b996 2024-06-10)
- cargo 1.79.0 (ffa9cf99a 2024-06-03)
- clippy 0.1.79 (129f3b9 2024-06-10)
Annotations
Check failure on line 37 in src/utils/headers.rs
github-actions / clippy
use of `default` to create a unit struct
error: use of `default` to create a unit struct
--> src/utils/headers.rs:37:82
|
37 | let mut meta_map = HashMap::with_capacity_and_hasher(shint, FxBuildHasher::default());
| ^^^^^^^^^^^ help: remove this call to `default`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#default_constructed_unit_structs
= note: `-D clippy::default-constructed-unit-structs` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::default_constructed_unit_structs)]`
Check failure on line 207 in src/server/mod.rs
github-actions / clippy
matching over `()` is more explicit
error: matching over `()` is more explicit
--> src/server/mod.rs:207:9
|
207 | _ = terminate => {},
| ^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
Check failure on line 206 in src/server/mod.rs
github-actions / clippy
matching over `()` is more explicit
error: matching over `()` is more explicit
--> src/server/mod.rs:206:9
|
206 | _ = ctrl_c => {},
| ^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
= note: `-D clippy::ignored-unit-patterns` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::ignored_unit_patterns)]`
Check failure on line 209 in src/server/mod.rs
github-actions / clippy
consider adding a `;` to the last statement for consistent formatting
error: consider adding a `;` to the last statement for consistent formatting
--> src/server/mod.rs:209:5
|
209 | eprintln!("Shutting down ...")
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add a `;` here: `eprintln!("Shutting down ...");`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned
= note: `-D clippy::semicolon-if-nothing-returned` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::semicolon_if_nothing_returned)]`
Check failure on line 51 in src/models/file_info.rs
github-actions / clippy
match can be simplified with `.unwrap_or_default()`
error: match can be simplified with `.unwrap_or_default()`
--> src/models/file_info.rs:48:24
|
48 | let metadata = match initial_metadata {
| ________________________^
49 | | Some(meta) => meta,
50 | | None => FxHashMap::default(),
51 | | };
| |_________^ help: replace it with: `initial_metadata.unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_unwrap_or_default
= note: `-D clippy::manual-unwrap-or-default` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::manual_unwrap_or_default)]`