Simplify conditional expression.

This commit is contained in:
Corey Farwell 2017-04-27 00:26:42 -04:00
parent d1e869853a
commit a6bca6a8a6
1 changed files with 1 additions and 5 deletions

View File

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