From 40b87d4066fe85cb3fde6cf84cd60d748273ae25 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Tue, 7 Dec 2021 16:36:39 +0100 Subject: Set Rules Episode II: Attack of the properties --- src/util/mod.rs | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/util/mod.rs') 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 { /// Sets `other` as the value if `self` is `None` or if it contains a value -- cgit v1.2.3