Skip to content

Conversation

@amboar
Copy link
Collaborator

@amboar amboar commented Aug 8, 2025

No description provided.

amboar added 8 commits August 8, 2025 14:33
    error: this `if` statement can be collapsed
      --> src/wire/vec.rs:48:5
       |
    48 | /     if let Some(cap) = capacity {
    49 | |         if cap > S {
    50 | |             return Err(deku_error!(
    51 | |                 DekuError::InvalidParam,
    ...  |
    58 | |     }
       | |_____^
       |
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
       = note: `-D clippy::collapsible-if` implied by `-D warnings`
       = help: to override `-D warnings` add `#[allow(clippy::collapsible_if)]`
    help: collapse nested if block
       |
    48 ~     if let Some(cap) = capacity
    49 ~         && cap > S {
    50 |             return Err(deku_error!(
    ...
    56 |             ));
    57 ~         }
       |

Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
Make sure at least all rust source files are populated. After the
change:

    $ comm -23 <(git ls-files | sort) <(git grep -l SPDX-License-Identifier | sort)
    Cargo.lock
    Cargo.toml
    .github/workflows/main.yml
    .gitignore
    LICENSE
    README.md

Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
Now that we have the full request parse from deku there's no need to
explicitly log the substructure state.

Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
Rename it to AdminIoCqeStatusType in the process of adding
AdminIoCqeStatus, on which we implement From<_> for u32 to achieve the
isolation.

Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
Move the implementation to a free-standing function so it can be used
across both AdminIdentifyRequest and AdminGetLogPageRequest.

Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
…ion Log Page

Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
@amboar amboar merged commit 85f2c1d into main Aug 8, 2025
3 checks passed
@amboar amboar deleted the smart-log branch August 11, 2025 03:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants