mirror of https://github.com/tildeio/helix
Simplify conditional expression.
This commit is contained in:
parent
d1e869853a
commit
a6bca6a8a6
|
@ -14,11 +14,7 @@ impl UncheckedValue<bool> for VALUE {
|
|||
|
||||
impl ToRust<bool> for CheckedValue<bool> {
|
||||
fn to_rust(self) -> bool {
|
||||
if self.inner == unsafe { Qtrue } {
|
||||
true
|
||||
} else {
|
||||
false
|
||||
}
|
||||
self.inner == unsafe { Qtrue }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue