Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Housekeeping #109

Merged
merged 3 commits into from
Jul 27, 2024
Merged

Housekeeping #109

merged 3 commits into from
Jul 27, 2024

Conversation

Holzhaus
Copy link
Owner

No description provided.

Fixes the following warnings:

    warning: use of a fallible conversion when an infallible one could be used
       --> src/anlz.rs:635:18
        |
    635 |     #[br(count = len_cues)]
        |                  ^^^^^^^^ help: use: `From::from`
        |
        = note: converting `u16` to `usize` cannot fail
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_fallible_conversions
    note: the lint level is defined here
       --> src/lib.rs:18:9
        |
    18  | #![deny(clippy::all)]
        |         ^^^^^^^^^^^
        = note: `#[warn(clippy::unnecessary_fallible_conversions)]` implied by `#[warn(clippy::all)]`

    warning: use of a fallible conversion when an infallible one could be used
       --> src/anlz.rs:656:18
        |
    656 |     #[br(count = len_cues)]
        |                  ^^^^^^^^ help: use: `From::from`
        |
        = note: converting `u16` to `usize` cannot fail
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_fallible_conversions

    warning: use of a fallible conversion when an infallible one could be used
       --> src/anlz.rs:853:18
        |
    853 |     #[br(count = len_entries)]
        |                  ^^^^^^^^^^^ help: use: `From::from`
        |
        = note: converting `u16` to `usize` cannot fail
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_fallible_conversions

    warning: use of a fallible conversion when an infallible one could be used
       --> src/pdb/string.rs:164:22
        |
    164 |         #[br(count = (header >> 1) - 1)]
        |                      ^^^^^^^^^^^^^ help: use: `From::from`
        |
        = note: converting `u8` to `usize` cannot fail
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_fallible_conversions

    warning: use of a fallible conversion when an infallible one could be used
       --> src/pdb/string.rs:196:24
        |
    196 |     Ascii(#[br(count = len)] Vec<u8>),
        |                        ^^^ help: use: `From::from`
        |
        = note: converting `u16` to `usize` cannot fail
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_fallible_conversions

    warning: use of a fallible conversion when an infallible one could be used
       --> src/pdb/string.rs:199:25
        |
    199 |     Ucs2le(#[br(count = len / 2)] Vec<u16>),
        |                         ^^^ help: use: `From::from`
        |
        = note: converting `u16` to `usize` cannot fail
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_fallible_conversions

    warning: `rekordcrate` (lib) generated 6 warnings
    warning: `rekordcrate` (lib test) generated 6 warnings (6 duplicates)
@Holzhaus Holzhaus added the enhancement New feature or request label Jul 27, 2024
@Holzhaus Holzhaus merged commit 3939a78 into main Jul 27, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant