Update thiserror requirement from 1.0.50 to 2.0.0 #4
GitHub Actions / clippy
failed
Nov 6, 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.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 105 in src/../README.md
github-actions / clippy
needless `fn main` in doctest
error: needless `fn main` in doctest
--> src/../README.md:90:1
|
90 | / use img_stegano::{ImgStegano, Image, image::ImageFormat};
91 | |
92 | | fn main() {
93 | | // encode from file path
... |
104 | | assert_eq!(decoded_text, "foo bar".to_string());
105 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
Check failure on line 84 in src/../README.md
github-actions / clippy
needless `fn main` in doctest
error: needless `fn main` in doctest
--> src/../README.md:57:1
|
57 | / use std::{fs::File, io::Read};
58 | | use img_stegano::{ImgStegano, Image, image::ImageFormat};
59 | |
60 | | fn main() {
... |
83 | | assert_eq!(decoded_text, "foo bar".to_string());
84 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
Check failure on line 51 in src/../README.md
github-actions / clippy
needless `fn main` in doctest
error: needless `fn main` in doctest
--> src/../README.md:32:1
|
32 | / use img_stegano::{ImgStegano, Image, image::ImageFormat};
33 | |
34 | | fn main() {
35 | | // open image
... |
50 | | assert_eq!(decoded_text, "foo bar".to_string());
51 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `-D clippy::needless-doctest-main` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::needless_doctest_main)]`
Loading