summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorMartin <mhaug@live.de>2021-12-22 20:37:34 +0100
committerGitHub <noreply@github.com>2021-12-22 20:37:34 +0100
commitf6c7a8292dc1ab0560408fca9d74505e9d7cf13a (patch)
treebadd3076f6146cec34c55764600df5124c408521 /src/util
parent738ff7e1f573bef678932b313be9969a17af8d22 (diff)
parent438255519e88bb790480306b9a9b452aaf054519 (diff)
Merge pull request #51 from typst/set-rules
Set rules
Diffstat (limited to 'src/util')
-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