GitHub Actions / clippy
failed
Oct 22, 2024 in 0s
clippy
4 errors
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 4 |
Warning | 0 |
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 failure on line 44 in src/lib.rs
github-actions / clippy
`Error` doesn't implement `std::fmt::Display`
error[E0277]: `Error` doesn't implement `std::fmt::Display`
--> src/lib.rs:44:32
|
44 | std::fmt::Display::fmt(self, fmt)
| ---------------------- ^^^^ `Error` cannot be formatted with the default formatter
| |
| required by a bound introduced by this call
|
= help: the trait `std::fmt::Display` is not implemented for `Error`
= note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
Check failure on line 17 in src/lib.rs
github-actions / clippy
unused import: `Result`
error: unused import: `Result`
--> src/lib.rs:17:31
|
17 | pub use types::{Case, Locale, Result, StyleGuide};
| ^^^^^^
|
= note: `-D unused-imports` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(unused_imports)]`
Check failure on line 6 in src/lib.rs
github-actions / clippy
failed to resolve: use of undeclared crate or module `snafu`
error[E0433]: failed to resolve: use of undeclared crate or module `snafu`
--> src/lib.rs:6:5
|
6 | use snafu::prelude::*;
| ^^^^^ use of undeclared crate or module `snafu`
Check failure on line 48 in src/lib.rs
github-actions / clippy
the name `Result` is defined multiple times
error[E0255]: the name `Result` is defined multiple times
--> src/lib.rs:48:1
|
17 | pub use types::{Case, Locale, Result, StyleGuide};
| ------ previous import of the type `Result` here
...
48 | pub type Result<T, E = Error> = std::result::Result<T, E>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Result` redefined here
|
= note: `Result` must be defined only once in the type namespace of this module
help: you can use `as` to change the binding name of the import
|
17 | pub use types::{Case, Locale, Result as OtherResult, StyleGuide};
| ++++++++++++++
Loading