Skip to content

New documentation site built with Material for MkDocs #451

New documentation site built with Material for MkDocs

New documentation site built with Material for MkDocs #451

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

clippy

4 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 0
Warning 4
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 473 in trustchain-ion/src/commitment.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()`
   --> trustchain-ion/src/commitment.rs:470:25
    |
470 |           let endpoints = match did_doc.get_endpoints() {
    |  _________________________^
471 | |             Some(x) => x,
472 | |             None => vec![],
473 | |         };
    | |_________^ help: replace it with: `did_doc.get_endpoints().unwrap_or_default()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_unwrap_or_default

Check warning on line 469 in trustchain-ion/src/commitment.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()`
   --> trustchain-ion/src/commitment.rs:466:20
    |
466 |           let keys = match did_doc.get_keys() {
    |  ____________________^
467 | |             Some(x) => x,
468 | |             None => vec![],
469 | |         };
    | |_________^ help: replace it with: `did_doc.get_keys().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 334 in trustchain-ion/src/utils.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of deprecated method `chrono::NaiveDateTime::timestamp`: use `.and_utc().timestamp()` instead

warning: use of deprecated method `chrono::NaiveDateTime::timestamp`: use `.and_utc().timestamp()` instead
   --> trustchain-ion/src/utils.rs:334:14
    |
334 |     datetime.timestamp()
    |              ^^^^^^^^^
    |
    = note: `#[warn(deprecated)]` on by default

Check warning on line 65 in trustchain-core/src/graph.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

assigning the result of `ToOwned::to_owned()` may be inefficient

warning: assigning the result of `ToOwned::to_owned()` may be inefficient
  --> trustchain-core/src/graph.rs:65:13
   |
65 |             did = ddid.to_owned();
   |             ^^^^^^^^^^^^^^^^^^^^^ help: use `clone_into()`: `ddid.clone_into(&mut did)`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones
   = note: `#[warn(clippy::assigning_clones)]` on by default