Skip to content

Update Rust crate float_eq to 1.0.1 - autoclosed #61

Update Rust crate float_eq to 1.0.1 - autoclosed

Update Rust crate float_eq to 1.0.1 - autoclosed #61

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

clippy

20 warnings

Details

Results

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

Versions

  • rustc 1.77.2 (25ef9e3d8 2024-04-09)
  • cargo 1.77.2 (e52e36006 2024-03-26)
  • clippy 0.1.77 (25ef9e3 2024-04-09)

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 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.5

warning: multiple versions for dependency `windows_x86_64_msvc`: 0.48.5, 0.52.5
  |
  = 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.5

warning: multiple versions for dependency `windows_x86_64_gnullvm`: 0.48.5, 0.52.5
  |
  = 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.5

warning: multiple versions for dependency `windows_x86_64_gnu`: 0.48.5, 0.52.5
  |
  = 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.5

warning: multiple versions for dependency `windows_i686_msvc`: 0.48.5, 0.52.5
  |
  = 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.5

warning: multiple versions for dependency `windows_i686_gnu`: 0.48.5, 0.52.5
  |
  = 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.5

warning: multiple versions for dependency `windows_aarch64_msvc`: 0.48.5, 0.52.5
  |
  = 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.5

warning: multiple versions for dependency `windows_aarch64_gnullvm`: 0.48.5, 0.52.5
  |
  = 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.5

warning: multiple versions for dependency `windows-targets`: 0.48.5, 0.52.5
  |
  = 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

warning: multiple versions for dependency `windows-sys`: 0.48.0, 0.52.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 `syn`: 1.0.109, 2.0.60

warning: multiple versions for dependency `syn`: 1.0.109, 2.0.60
  |
  = 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 `idna`: 0.4.0, 0.5.0

warning: multiple versions for dependency `idna`: 0.4.0, 0.5.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 `heck`: 0.4.1, 0.5.0

warning: multiple versions for dependency `heck`: 0.4.1, 0.5.0
  |
  = 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)]`