Skip to content

Update Rust crate thiserror to v2 #68

Update Rust crate thiserror to v2

Update Rust crate thiserror to v2 #68

Triggered via pull request November 6, 2024 04:50
Status Success
Total duration 5m 58s
Artifacts

test.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

30 warnings
file opened with `create`, but `truncate` behavior not defined: src/sync/cache.rs#L93
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
file opened with `create`, but `truncate` behavior not defined: src/sync/cache.rs#L27
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
matching over `()` is more explicit: src/util.rs#L18
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)]`
accessing first element with `list_fuzzy(&timezones, timezone, 1).get(0)`: src/util/time.rs#L46
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
this expression always evaluates to false: src/report.rs#L236
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
redundant guard: src/directory.rs#L245
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") => (), |
multiple versions for dependency `windows_x86_64_msvc`: 0.48.5, 0.52.6: src/main.rs#L1
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
multiple versions for dependency `windows_x86_64_gnullvm`: 0.48.5, 0.52.6: src/main.rs#L1
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
multiple versions for dependency `windows_x86_64_gnu`: 0.48.5, 0.52.6: src/main.rs#L1
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
multiple versions for dependency `windows_i686_msvc`: 0.48.5, 0.52.6: src/main.rs#L1
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
multiple versions for dependency `windows_i686_gnu`: 0.48.5, 0.52.6: src/main.rs#L1
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
multiple versions for dependency `windows_aarch64_msvc`: 0.48.5, 0.52.6: src/main.rs#L1
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
multiple versions for dependency `windows_aarch64_gnullvm`: 0.48.5, 0.52.6: src/main.rs#L1
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
multiple versions for dependency `windows-targets`: 0.48.5, 0.52.6: src/main.rs#L1
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
multiple versions for dependency `windows-sys`: 0.48.0, 0.52.0, 0.59.0: src/main.rs#L1
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
multiple versions for dependency `time-macros`: 0.1.1, 0.2.18: src/main.rs#L1
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
multiple versions for dependency `time`: 0.2.27, 0.3.36: src/main.rs#L1
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
multiple versions for dependency `thiserror-impl`: 1.0.68, 2.0.0: src/main.rs#L1
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
multiple versions for dependency `thiserror`: 1.0.68, 2.0.0: src/main.rs#L1
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
multiple versions for dependency `syn`: 1.0.109, 2.0.87: src/main.rs#L1
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
multiple versions for dependency `miniz_oxide`: 0.7.4, 0.8.0: src/main.rs#L1
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
multiple versions for dependency `itoa`: 0.4.8, 1.0.11: src/main.rs#L1
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
multiple versions for dependency `itertools`: 0.12.1, 0.13.0: src/main.rs#L1
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
multiple versions for dependency `idna`: 0.4.0, 1.0.3: src/main.rs#L1
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)]`
tests
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
tests
The following actions use a deprecated Node.js version and will be forced to run on node20: actions-rs/toolchain@v1, actions/cache@v3, actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
tests
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
tests
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
tests
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
tests
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/