Skip to content

Update Rust crate thiserror to v2 #68

Update Rust crate thiserror to v2

Update Rust crate thiserror to v2 #68

GitHub Actions / clippy succeeded Nov 6, 2024 in 0s

clippy

24 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 0
Warning 24
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 warning on line 93 in src/sync/cache.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

file opened with `create`, but `truncate` behavior not defined

warning: file opened with `create`, but `truncate` behavior not defined
  --> src/sync/cache.rs:93:14
   |
93 |             .create(true)
   |              ^^^^^^^^^^^^- help: add: `.truncate(true)`
   |
   = help: if you intend to overwrite an existing file entirely, call `.truncate(true)`
   = help: if you instead know that you may want to keep some parts of the old file, call `.truncate(false)`
   = help: alternatively, use `.append(true)` to append to the file instead of overwriting it
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_open_options

Check warning on line 27 in src/sync/cache.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

file opened with `create`, but `truncate` behavior not defined

warning: file opened with `create`, but `truncate` behavior not defined
  --> src/sync/cache.rs:27:14
   |
27 |             .create(true)
   |              ^^^^^^^^^^^^- help: add: `.truncate(true)`
   |
   = help: if you intend to overwrite an existing file entirely, call `.truncate(true)`
   = help: if you instead know that you may want to keep some parts of the old file, call `.truncate(false)`
   = help: alternatively, use `.append(true)` to append to the file instead of overwriting it
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_open_options
   = note: `#[warn(clippy::suspicious_open_options)]` on by default

Check warning on line 18 in src/util.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

matching over `()` is more explicit

warning: matching over `()` is more explicit
  --> src/util.rs:18:16
   |
18 |             Ok(_) => Ok(()),
   |                ^ help: use `()` instead of `_`: `()`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
note: the lint level is defined here
  --> src/main.rs:2:9
   |
2  | #![warn(clippy::pedantic, clippy::cargo)] 
   |         ^^^^^^^^^^^^^^^^
   = note: `#[warn(clippy::ignored_unit_patterns)]` implied by `#[warn(clippy::pedantic)]`

Check warning on line 46 in src/util/time.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

accessing first element with `list_fuzzy(&timezones, timezone, 1).get(0)`

warning: accessing first element with `list_fuzzy(&timezones, timezone, 1).get(0)`
  --> src/util/time.rs:46:19
   |
46 |         Err(match list_fuzzy(&timezones, timezone, 1).get(0) {
   |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `list_fuzzy(&timezones, timezone, 1).first()`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first
   = note: `#[warn(clippy::get_first)]` on by default

Check warning on line 236 in src/report.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this expression always evaluates to false

warning: this expression always evaluates to false
   --> src/report.rs:236:14
    |
236 |     assert!(!REPORT_UUID.is_empty(), "report uuid is empty str");
    |              ^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_is_empty
    = note: `#[warn(clippy::const_is_empty)]` on by default

Check warning on line 245 in src/directory.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

redundant guard

warning: redundant guard
   --> src/directory.rs:245:24
    |
245 |             Some(e) if e == "metadata" => (),
    |                        ^^^^^^^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_guards
    = note: `#[warn(clippy::redundant_guards)]` on by default
help: try
    |
245 -             Some(e) if e == "metadata" => (),
245 +             Some("metadata") => (),
    |

Check warning on line 1 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

multiple versions for dependency `windows_x86_64_msvc`: 0.48.5, 0.52.6

warning: multiple versions for dependency `windows_x86_64_msvc`: 0.48.5, 0.52.6
  |
  = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_crate_versions

Check warning on line 1 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

multiple versions for dependency `windows_x86_64_gnullvm`: 0.48.5, 0.52.6

warning: multiple versions for dependency `windows_x86_64_gnullvm`: 0.48.5, 0.52.6
  |
  = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_crate_versions

Check warning on line 1 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

multiple versions for dependency `windows_x86_64_gnu`: 0.48.5, 0.52.6

warning: multiple versions for dependency `windows_x86_64_gnu`: 0.48.5, 0.52.6
  |
  = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_crate_versions

Check warning on line 1 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

multiple versions for dependency `windows_i686_msvc`: 0.48.5, 0.52.6

warning: multiple versions for dependency `windows_i686_msvc`: 0.48.5, 0.52.6
  |
  = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_crate_versions

Check warning on line 1 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

multiple versions for dependency `windows_i686_gnu`: 0.48.5, 0.52.6

warning: multiple versions for dependency `windows_i686_gnu`: 0.48.5, 0.52.6
  |
  = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_crate_versions

Check warning on line 1 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

multiple versions for dependency `windows_aarch64_msvc`: 0.48.5, 0.52.6

warning: multiple versions for dependency `windows_aarch64_msvc`: 0.48.5, 0.52.6
  |
  = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_crate_versions

Check warning on line 1 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

multiple versions for dependency `windows_aarch64_gnullvm`: 0.48.5, 0.52.6

warning: multiple versions for dependency `windows_aarch64_gnullvm`: 0.48.5, 0.52.6
  |
  = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_crate_versions

Check warning on line 1 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

multiple versions for dependency `windows-targets`: 0.48.5, 0.52.6

warning: multiple versions for dependency `windows-targets`: 0.48.5, 0.52.6
  |
  = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_crate_versions

Check warning on line 1 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

multiple versions for dependency `windows-sys`: 0.48.0, 0.52.0, 0.59.0

warning: multiple versions for dependency `windows-sys`: 0.48.0, 0.52.0, 0.59.0
  |
  = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_crate_versions

Check warning on line 1 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

multiple versions for dependency `time-macros`: 0.1.1, 0.2.18

warning: multiple versions for dependency `time-macros`: 0.1.1, 0.2.18
  |
  = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_crate_versions

Check warning on line 1 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

multiple versions for dependency `time`: 0.2.27, 0.3.36

warning: multiple versions for dependency `time`: 0.2.27, 0.3.36
  |
  = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_crate_versions

Check warning on line 1 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

multiple versions for dependency `thiserror-impl`: 1.0.68, 2.0.0

warning: multiple versions for dependency `thiserror-impl`: 1.0.68, 2.0.0
  |
  = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_crate_versions

Check warning on line 1 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

multiple versions for dependency `thiserror`: 1.0.68, 2.0.0

warning: multiple versions for dependency `thiserror`: 1.0.68, 2.0.0
  |
  = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_crate_versions

Check warning on line 1 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

multiple versions for dependency `syn`: 1.0.109, 2.0.87

warning: multiple versions for dependency `syn`: 1.0.109, 2.0.87
  |
  = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_crate_versions

Check warning on line 1 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

multiple versions for dependency `miniz_oxide`: 0.7.4, 0.8.0

warning: multiple versions for dependency `miniz_oxide`: 0.7.4, 0.8.0
  |
  = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_crate_versions

Check warning on line 1 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

multiple versions for dependency `itoa`: 0.4.8, 1.0.11

warning: multiple versions for dependency `itoa`: 0.4.8, 1.0.11
  |
  = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_crate_versions

Check warning on line 1 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

multiple versions for dependency `itertools`: 0.12.1, 0.13.0

warning: multiple versions for dependency `itertools`: 0.12.1, 0.13.0
  |
  = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_crate_versions

Check warning on line 1 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

multiple versions for dependency `idna`: 0.4.0, 1.0.3

warning: multiple versions for dependency `idna`: 0.4.0, 1.0.3
  |
  = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_crate_versions
note: the lint level is defined here
 --> src/main.rs:2:27
  |
2 | #![warn(clippy::pedantic, clippy::cargo)] 
  |                           ^^^^^^^^^^^^^
  = note: `#[warn(clippy::multiple_crate_versions)]` implied by `#[warn(clippy::cargo)]`