clippy fix
This commit is contained in:
parent
b17f239801
commit
d37797d2ec
2 changed files with 2 additions and 3 deletions
|
|
@ -73,8 +73,7 @@ impl Error {
|
||||||
pub fn is_fatal(&self) -> bool {
|
pub fn is_fatal(&self) -> bool {
|
||||||
match self {
|
match self {
|
||||||
Self::InvalidParameter(p) => p.is_fatal(),
|
Self::InvalidParameter(p) => p.is_fatal(),
|
||||||
Self::Mismatch { .. } => true,
|
Self::Mismatch { .. } | Self::Unknown(_) => true,
|
||||||
Self::Unknown(_) => true,
|
|
||||||
_ => false,
|
_ => false,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@ pub fn prompt_rebuild_share() {
|
||||||
.interact()
|
.interact()
|
||||||
.unwrap_or(false);
|
.unwrap_or(false);
|
||||||
|
|
||||||
if selection == false {
|
if !selection {
|
||||||
process::exit(0);
|
process::exit(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue