diff options
Diffstat (limited to 'src/util/mod.rs')
| -rw-r--r-- | src/util/mod.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/util/mod.rs b/src/util/mod.rs index 6fc1fb59..694c90c8 100644 --- a/src/util/mod.rs +++ b/src/util/mod.rs @@ -13,18 +13,6 @@ use std::ops::Range; use std::path::{Component, Path, PathBuf}; use std::rc::Rc; -/// Additional methods for booleans. -pub trait BoolExt { - /// Toggle the value of the bool in place. - fn flip(&mut self); -} - -impl BoolExt for bool { - fn flip(&mut self) { - *self = !*self; - } -} - /// Additional methods for options. pub trait OptionExt<T> { /// Sets `other` as the value if `self` is `None` or if it contains a value |
