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 {
match self.has_capability(cap) {
true => "t",
false => "f",
if self.has_capability(cap) {
"t"
} else {
"f"
}
}
fn encode_not_capability(&self, cap: SystemCapabilities) -> &str {
match self.has_capability(cap) {
true => "f",
false => "t",
if self.has_capability(cap) {
"f"
} else {
"t"
}
}