diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-12-07 16:36:39 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-12-07 16:36:39 +0100 |
| commit | 40b87d4066fe85cb3fde6cf84cd60d748273ae25 (patch) | |
| tree | 792b2e5edd8e72649d9fdcac24dc07620bf0f15c /src/util/mod.rs | |
| parent | 26bdc1f0f6fe8113d7fcfb4d5aca46aa5238ccd8 (diff) | |
Set Rules Episode II: Attack of the properties
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 |
