diff options
Diffstat (limited to 'src/util.rs')
| -rw-r--r-- | src/util.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/util.rs b/src/util.rs index 1aee8a4..db572c6 100644 --- a/src/util.rs +++ b/src/util.rs @@ -2,17 +2,11 @@ use std::error::Error; use std::fmt::{Display, Formatter}; use std::cmp::{min, max}; -use serde_json::Value; pub fn clamp<T: Ord>(val: T, lower: T, upper: T) -> T{ max(min(val, upper), lower) } -pub trait ToJson { - fn to_json(&self) -> Value; -} - - pub type AnyError = Box<dyn Error + 'static>; pub type Result<T> = std::result::Result<T, AnyError>; |
