-
Notifications
You must be signed in to change notification settings - Fork 346
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
fix the warns from cargo clippy #1564
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #1564 +/- ##
==========================================
+ Coverage 68.71% 68.78% +0.06%
==========================================
Files 120 120
Lines 13094 13072 -22
==========================================
- Hits 8998 8992 -6
+ Misses 4096 4080 -16 |
Signed-off-by: utam0k <[email protected]>
Hey, thanks a lot for opening this 🤗 . As this is not marked WIP, I'll take a look at this and merge if no issue :) |
@@ -378,7 +374,7 @@ impl Mount { | |||
if let Some(l) = label { | |||
if typ != Some("proc") && typ != Some("sysfs") { | |||
match mount_option_config.data.is_empty() { | |||
true => d = format!("context=\"{}\"", l), | |||
true => d = format!("context=\"{l}\""), | |||
false => d = format!("{},context=\"{}\"", mount_option_config.data, l), |
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.
Hey, why is this part not formatted in the same way? we can format l
in the same way here right?
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 not sure because this changes created by cargo fmt and clippy
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 👍
Just check the one comment I have left
Signed-off-by: utam0k [email protected]