Skip to content

test

test #621

GitHub Actions / clippy succeeded Mar 19, 2024 in 1s

clippy

2 warnings

Details

Results

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

Versions

  • rustc 1.76.0 (07dca489a 2024-02-04)
  • cargo 1.76.0 (c84b36747 2024-01-18)
  • clippy 0.1.76 (07dca48 2024-02-04)

Annotations

Check warning on line 190 in casper-server/src/lua/yaml.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

accessing first element with `keys.get(0)`

warning: accessing first element with `keys.get(0)`
   --> casper-server/src/lua/yaml.rs:190:28
    |
190 |     let next_value = match keys.get(0) {
    |                            ^^^^^^^^^^^ help: try: `keys.first()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first
    = note: `#[warn(clippy::get_first)]` on by default

Check warning on line 40 in casper-server/src/http/serde.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

function `serialize` is never used

warning: function `serialize` is never used
  --> casper-server/src/http/serde.rs:40:12
   |
40 |     pub fn serialize<S: Serializer>(headers: &HeaderMap, ser: S) -> Result<S::Ok, S::Error> {
   |            ^^^^^^^^^
   |
   = note: `#[warn(dead_code)]` on by default