chore: Fix clippy lints

This commit is contained in:
CUB3D 2020-06-03 20:22:25 +01:00
parent 22d64aabd5
commit ad3bc612aa
1 changed files with 8 additions and 6 deletions

View File

@ -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"
} }
} }