-
Notifications
You must be signed in to change notification settings - Fork 82
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
kargs: A few more minor cleanups and test improvements #648
Conversation
Just reducing the size of the main `get_kargs`. Now that we've split out the helper, add a unit test. Signed-off-by: Colin Walters <[email protected]>
Instead of nested `if`, use `continue` to de-indent. Signed-off-by: Colin Walters <[email protected]>
Signed-off-by: Colin Walters <[email protected]>
Since we have two different read paths. Signed-off-by: Colin Walters <[email protected]>
parse_kargs_toml(&s, sys_arch).with_context(|| format!("Parsing {name}"))?; | ||
ret.extend(parsed_kargs); | ||
} | ||
let name = if let Some(name) = name.to_str() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm totally fine with this change, but I guess I just personally don't like having else
statements only containing continue
even if it helps with code readability. Once again, okay with this change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's somewhat idiomatic I think in Rust at least.
Although...actually for a while now there's been let-else which I think we can do a tree-wide conversion to.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
➡️ #650
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
….2.154 build(deps): bump libc from 0.2.153 to 0.2.154
tar: Handle hardlinks into /etc
No description provided.