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

Update Rust crate miette to v7 #1019

Update Rust crate miette to v7

Update Rust crate miette to v7 #1019

GitHub Actions / clippy succeeded May 5, 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 (e82c861d7 2024-05-04)
  • cargo 1.80.0-nightly (05364cb2f 2024-05-03)
  • clippy 0.1.80 (e82c861 2024-05-04)

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/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
   = note: `#[warn(unexpected_cfgs)]` on by default

Check warning on line 745 in src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

assigning the result of `ToOwned::to_owned()` may be inefficient

warning: assigning the result of `ToOwned::to_owned()` may be inefficient
   --> src/lib.rs:745:3
    |
745 |         frontmatter = "empty: true".to_owned();
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_into()`: `"empty: true".clone_into(&mut frontmatter)`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones
    = note: `#[warn(clippy::assigning_clones)]` on by default

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)