Skip to content

build: Bump Rust version to 1.66 #12

build: Bump Rust version to 1.66

build: Bump Rust version to 1.66 #12

GitHub Actions / clippy failed Oct 23, 2023 in 0s

clippy

4 errors

Details

Results

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

Versions

  • rustc 1.66.0 (69f9c33d7 2022-12-12)
  • cargo 1.66.0 (d65d197ad 2022-11-15)
  • clippy 0.1.66 (69f9c33 2022-12-12)

Annotations

Check failure on line 2452 in src/db_options.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

casting `bool` to `u8` is more cleanly stated with `u8::from(_)`

error: casting `bool` to `u8` is more cleanly stated with `u8::from(_)`
    --> src/db_options.rs:2452:17
     |
2452 |                 options.store_index_in_file as _,
     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u8::from(options.store_index_in_file)`
     |
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless

Check failure on line 2451 in src/db_options.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

casting `bool` to `u8` is more cleanly stated with `u8::from(_)`

error: casting `bool` to `u8` is more cleanly stated with `u8::from(_)`
    --> src/db_options.rs:2451:17
     |
2451 |                 options.full_scan_mode as _,
     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u8::from(options.full_scan_mode)`
     |
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless
     = note: `-D clippy::cast-lossless` implied by `-D warnings`

Check failure on line 2452 in src/db_options.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

casting `bool` to `u8` is more cleanly stated with `u8::from(_)`

error: casting `bool` to `u8` is more cleanly stated with `u8::from(_)`
    --> src/db_options.rs:2452:17
     |
2452 |                 options.store_index_in_file as _,
     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u8::from(options.store_index_in_file)`
     |
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless

Check failure on line 2451 in src/db_options.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

casting `bool` to `u8` is more cleanly stated with `u8::from(_)`

error: casting `bool` to `u8` is more cleanly stated with `u8::from(_)`
    --> src/db_options.rs:2451:17
     |
2451 |                 options.full_scan_mode as _,
     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u8::from(options.full_scan_mode)`
     |
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless
     = note: `-D clippy::cast-lossless` implied by `-D warnings`