chore: Fix clippy lints
This commit is contained in:
parent
22d64aabd5
commit
ad3bc612aa
|
@ -257,16 +257,18 @@ impl SystemProperties {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn encode_capability(&self, cap: SystemCapabilities) -> &str {
|
fn encode_capability(&self, cap: SystemCapabilities) -> &str {
|
||||||
match self.has_capability(cap) {
|
if self.has_capability(cap) {
|
||||||
true => "t",
|
"t"
|
||||||
false => "f",
|
} else {
|
||||||
|
"f"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn encode_not_capability(&self, cap: SystemCapabilities) -> &str {
|
fn encode_not_capability(&self, cap: SystemCapabilities) -> &str {
|
||||||
match self.has_capability(cap) {
|
if self.has_capability(cap) {
|
||||||
true => "f",
|
"f"
|
||||||
false => "t",
|
} else {
|
||||||
|
"t"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue