Skip to content
This repository was archived by the owner on Oct 10, 2024. It is now read-only.

Update Rust crate miette to v7 #1138

Update Rust crate miette to v7

Update Rust crate miette to v7 #1138

GitHub Actions / clippy succeeded May 26, 2024 in 1s

clippy

6 warnings

Details

Results

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

Versions

  • rustc 1.80.0-nightly (36153f1a4 2024-05-24)
  • cargo 1.80.0-nightly (84dc5dc11 2024-05-20)
  • clippy 0.1.80 (36153f1 2024-05-24)

Annotations

Check warning on line 166 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

called `unwrap` on `ignore_git_folder` after checking its variant with `is_ok`

warning: called `unwrap` on `ignore_git_folder` after checking its variant with `is_ok`
   --> src/main.rs:166:3
    |
165 |     if ignore_git_folder.is_ok() {
    |     ---------------------------- help: try: `if let Ok(..) = ignore_git_folder`
166 |         ignore_git_folder.unwrap();
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap

Check warning on line 160 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

called `unwrap` on `ignore_output_folder` after checking its variant with `is_ok`

warning: called `unwrap` on `ignore_output_folder` after checking its variant with `is_ok`
   --> src/main.rs:160:3
    |
159 |     if ignore_output_folder.is_ok() {
    |     ------------------------------- help: try: `if let Ok(..) = ignore_output_folder`
160 |         ignore_output_folder.unwrap();
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap
    = note: `#[warn(clippy::unnecessary_unwrap)]` on by default

Check warning on line 17 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unexpected `cfg` condition value: `dox`

warning: unexpected `cfg` condition value: `dox`
  --> src/main.rs:17:13
   |
17 | #![cfg_attr(feature = "dox", feature(doc_cfg))]
   |             ^^^^^^^^^^^^^^^ help: remove the condition
   |
   = note: no expected values for `feature`
   = help: consider adding `dox` as a feature in `Cargo.toml`
   = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
   = note: `#[warn(unexpected_cfgs)]` on by default

Check warning on line 776 in src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the borrowed expression implements the required traits

warning: the borrowed expression implements the required traits
   --> src/lib.rs:773:6
    |
773 | /                     &fs::read_to_string(path)
774 | |                         .into_diagnostic()
775 | |                         .wrap_err(format!("Unable to read snippet file '{}'.", path.display()))
776 | |                         .unwrap(),
    | |_________________________________^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
    = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default
help: change this to
    |
773 ~                     fs::read_to_string(path)
774 ~                         .into_diagnostic()
775 ~                         .wrap_err(format!("Unable to read snippet file '{}'.", path.display()))
776 ~                         .unwrap(),
    |

Check warning on line 215 in src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this function has too many arguments (10/7)

warning: this function has too many arguments (10/7)
   --> src/lib.rs:212:2
    |
212 |       Constructor,
    |       ^----------
    |       |
    |  _____in this derive macro expansion
    | |
213 | | )]
214 | | /// Generated data regarding a Mokk file
215 | | pub struct Page {
    | |_______________^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
    = note: this warning originates in the derive macro `Constructor` (in Nightly builds, run with -Z macro-backtrace for more info)

Check warning on line 64 in src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this function has too many arguments (19/7)

warning: this function has too many arguments (19/7)
  --> src/lib.rs:61:2
   |
61 |       Constructor,
   |       ^----------
   |       |
   |  _____in this derive macro expansion
   | |
62 | | )]
63 | | /// A Mokk file's date-time metadata
64 | | pub struct Date {
   | |_______________^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
   = note: `#[warn(clippy::too_many_arguments)]` on by default
   = note: this warning originates in the derive macro `Constructor` (in Nightly builds, run with -Z macro-backtrace for more info)