Skip to content

Merge pull request #15 from entropic-security/v0.11.1 #187

Merge pull request #15 from entropic-security/v0.11.1

Merge pull request #15 from entropic-security/v0.11.1 #187

GitHub Actions / clippy succeeded Jul 13, 2024 in 0s

clippy

3 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 0
Warning 3
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 warning on line 190 in src/cli/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

match can be simplified with `.unwrap_or_default()`

warning: match can be simplified with `.unwrap_or_default()`
   --> src/cli/main.rs:187:33
    |
187 |       let mut term_width: usize = match term_size::dimensions() {
    |  _________________________________^
188 | |         Some((w, _)) => w,
189 | |         None => 0,
190 | |     };
    | |_____^ help: replace it with: `term_size::dimensions().unwrap_or_default()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_unwrap_or_default
    = note: `#[warn(clippy::manual_unwrap_or_default)]` on by default

Check warning on line 302 in src/search.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

mutable key type

warning: mutable key type
   --> src/search.rs:302:6
    |
302 | ) -> HashSet<gadget::Gadget> {
    |      ^^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mutable_key_type

Check warning on line 75 in src/search.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

mutable key type

warning: mutable key type
  --> src/search.rs:75:13
   |
75 |             let mut common_gadgets = first_set.clone();
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mutable_key_type
   = note: `#[warn(clippy::mutable_key_type)]` on by default