Skip to content

Continuous Integration #4531

Continuous Integration

Continuous Integration #4531

GitHub Actions / clippy succeeded Oct 18, 2024 in 0s

clippy

10 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 0
Warning 10
Note 0
Help 0

Versions

  • rustc 1.82.0 (f6e511eec 2024-10-15)
  • cargo 1.82.0 (8f40fc59f 2024-08-21)
  • clippy 0.1.82 (f6e511e 2024-10-15)

Annotations

Check warning on line 434 in serial-settings/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the borrowed expression implements the required traits

warning: the borrowed expression implements the required traits
   --> serial-settings/src/lib.rs:434:66
    |
434 |                 let value = match postcard::get_by_key(settings, &key, slic) {
    |                                                                  ^^^^ help: change this to: `key`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args

Check warning on line 384 in serial-settings/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the borrowed expression implements the required traits

warning: the borrowed expression implements the required traits
   --> serial-settings/src/lib.rs:384:70
    |
384 |                 let mut check = match postcard::get_by_key(defaults, &key, slic)
    |                                                                      ^^^^ help: change this to: `key`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args

Check warning on line 305 in serial-settings/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the borrowed expression implements the required traits

warning: the borrowed expression implements the required traits
   --> serial-settings/src/lib.rs:305:58
    |
305 |                     match postcard::set_by_key(settings, &key, slic) {
    |                                                          ^^^^ help: change this to: `key`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args

Check warning on line 276 in serial-settings/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the borrowed expression implements the required traits

warning: the borrowed expression implements the required traits
   --> serial-settings/src/lib.rs:276:65
    |
276 |                 let slic = match postcard::get_by_key(defaults, &key, slic) {
    |                                                                 ^^^^ help: change this to: `key`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args

Check warning on line 261 in serial-settings/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the borrowed expression implements the required traits

warning: the borrowed expression implements the required traits
   --> serial-settings/src/lib.rs:261:66
    |
261 |                 let check = match postcard::get_by_key(settings, &key, slic) {
    |                                                                  ^^^^ help: change this to: `key`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args

Check warning on line 218 in serial-settings/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the borrowed expression implements the required traits

warning: the borrowed expression implements the required traits
   --> serial-settings/src/lib.rs:218:66
    |
218 | ...                   match json::get_by_key(defaults, &key, interface.buffer) {
    |                                                        ^^^^ help: change this to: `key`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args

Check warning on line 212 in serial-settings/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the borrowed expression implements the required traits

warning: the borrowed expression implements the required traits
   --> serial-settings/src/lib.rs:212:62
    |
212 |                         match postcard::set_by_key(defaults, &key, slic) {
    |                                                              ^^^^ help: change this to: `key`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args

Check warning on line 176 in serial-settings/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the borrowed expression implements the required traits

warning: the borrowed expression implements the required traits
   --> serial-settings/src/lib.rs:176:50
    |
176 |                 match json::get_by_key(defaults, &key, interface.buffer) {
    |                                                  ^^^^ help: change this to: `key`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args

Check warning on line 147 in serial-settings/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the borrowed expression implements the required traits

warning: the borrowed expression implements the required traits
   --> serial-settings/src/lib.rs:147:54
    |
147 |                     match json::get_by_key(settings, &key, interface.buffer) {
    |                                                      ^^^^ help: change this to: `key`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args

Check warning on line 98 in serial-settings/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the borrowed expression implements the required traits

warning: the borrowed expression implements the required traits
  --> serial-settings/src/lib.rs:98:29
   |
98 |             match iter.root(&Path::<_, '/'>::from(key)) {
   |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `Path::<_, '/'>::from(key)`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
   = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default