Skip to content
GitHub Actions / clippy failed Dec 28, 2024 in 0s

clippy

3 errors

Details

Results

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

Versions

  • rustc 1.85.0-nightly (dd84b7d5e 2024-12-27)
  • cargo 1.85.0-nightly (c86f4b3a1 2024-12-24)
  • clippy 0.1.85 (dd84b7d5ee 2024-12-27)

Annotations

Check failure on line 142 in src/storage/faulty.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

`storage::faulty::FaultError` doesn't implement `derive_more::Display`

error[E0599]: `storage::faulty::FaultError` doesn't implement `derive_more::Display`
   --> src/storage/faulty.rs:142:52
    |
136 | pub struct FaultError;
    | --------------------- method `to_string` not found for this struct because it doesn't satisfy `storage::faulty::FaultError: derive_more::Display` or `storage::faulty::FaultError: std::string::ToString`
...
142 |         io::Error::new(io::ErrorKind::Other, error.to_string())
    |                                                    ^^^^^^^^^ `storage::faulty::FaultError` cannot be formatted with the default formatter
    |
    = note: the following trait bounds were not satisfied:
            `storage::faulty::FaultError: derive_more::Display`
            which is required by `storage::faulty::FaultError: std::string::ToString`
    = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
note: the trait `derive_more::Display` must be implemented
   --> /rustc/dd84b7d5eec3c20d7fcd13e6450af029d3cece9d/library/core/src/fmt/mod.rs:978:1
    = help: items from traits can only be used if the trait is implemented and in scope
    = note: the following trait defines an item `to_string`, perhaps you need to implement it:
            candidate #1: `std::string::ToString`

Check failure on line 31 in src/storage/faulty.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

`storage::faulty::FaultError` doesn't implement `derive_more::Display`

error[E0277]: `storage::faulty::FaultError` doesn't implement `derive_more::Display`
  --> src/storage/faulty.rs:31:17
   |
31 | #[derive(Debug, Display, From)]
   |                 ^^^^^^^ `storage::faulty::FaultError` cannot be formatted with the default formatter
   |
   = help: the trait `derive_more::Display` is not implemented for `storage::faulty::FaultError`
   = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
   = note: this error originates in the derive macro `Display` (in Nightly builds, run with -Z macro-backtrace for more info)

Check failure on line 138 in src/storage/faulty.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

`storage::faulty::FaultError` doesn't implement `derive_more::Display`

error[E0277]: `storage::faulty::FaultError` doesn't implement `derive_more::Display`
   --> src/storage/faulty.rs:138:28
    |
138 | impl std::error::Error for FaultError {}
    |                            ^^^^^^^^^^ `storage::faulty::FaultError` cannot be formatted with the default formatter
    |
    = help: the trait `derive_more::Display` is not implemented for `storage::faulty::FaultError`
    = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
note: required by a bound in `std::error::Error`
   --> /rustc/dd84b7d5eec3c20d7fcd13e6450af029d3cece9d/library/core/src/error.rs:29:1