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

Update Rust crate serde to 1.0.199 #1013

Update Rust crate serde to 1.0.199

Update Rust crate serde to 1.0.199 #1013

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

clippy

5 warnings

Details

Results

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

Versions

  • rustc 1.80.0-nightly (f705de596 2024-04-30)
  • cargo 1.80.0-nightly (b60a15551 2024-04-26)
  • clippy 0.1.79 (f705de5 2024-04-30)

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 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)