Avoid unneeded return keywords.

This commit is contained in:
Dan Gohman
2017-08-30 12:40:44 -07:00
parent 3532c3533a
commit 01744d6f65
2 changed files with 9 additions and 10 deletions

View File

@@ -31,7 +31,7 @@ impl<T> BitSet<T>
pub fn contains(&self, num: u8) -> bool {
assert!((num as usize) < Self::bits());
assert!((num as usize) < Self::max_bits());
return self.0.into() & (1 << num) != 0;
self.0.into() & (1 << num) != 0
}
/// Return the smallest number contained in the bitset or None if empty