summaryrefslogtreecommitdiff
path: root/src/util/mod.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-12-07 16:36:39 +0100
committerLaurenz <laurmaedje@gmail.com>2021-12-07 16:36:39 +0100
commit40b87d4066fe85cb3fde6cf84cd60d748273ae25 (patch)
tree792b2e5edd8e72649d9fdcac24dc07620bf0f15c /src/util/mod.rs
parent26bdc1f0f6fe8113d7fcfb4d5aca46aa5238ccd8 (diff)
Set Rules Episode II: Attack of the properties
Diffstat (limited to 'src/util/mod.rs')
-rw-r--r--src/util/mod.rs12
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