Skip to content

fix changelog version error #9

fix changelog version error

fix changelog version error #9

GitHub Actions / clippy failed Mar 26, 2024 in 0s

clippy

2 errors

Details

Results

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

Versions

  • rustc 1.77.0 (aedd173a2 2024-03-17)
  • cargo 1.77.0 (3fe68eabf 2024-02-29)
  • clippy 0.1.77 (aedd173 2024-03-17)

Annotations

Check failure on line 286 in src/did.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

you should consider adding a `Default` implementation for `Path<'a>`

error: you should consider adding a `Default` implementation for `Path<'a>`
   --> src/did.rs:284:5
    |
284 | /     pub const fn new() -> Self {
285 | |       Self(Cow::Borrowed(""))
286 | |     }
    | |_____^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default
    = note: `-D clippy::new-without-default` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::new_without_default)]`
help: try adding this
    |
283 ~   impl<'a> Default for Path<'a> {
284 +       fn default() -> Self {
285 +           Self::new()
286 +       }
287 +   }
288 + 
289 ~   impl<'a> Path<'a> {
    |

Check failure on line 6 in src/did.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the item `TryFrom` is imported redundantly

error: the item `TryFrom` is imported redundantly
 --> src/did.rs:6:5
  |
6 | use core::convert::TryFrom;
  |     ^^^^^^^^^^^^^^^^^^^^^^
 --> /rustc/5f2c7d2bfd46cad00352ab7cd66242077e2e518c/library/core/src/prelude/mod.rs:46:30
  |
  = note: the item `TryFrom` is already defined here
  |
  = note: `-D unused-imports` implied by `-D warnings`
  = help: to override `-D warnings` add `#[allow(unused_imports)]`