From 9a814769565ab36c227508c47792e112de338df1 Mon Sep 17 00:00:00 2001 From: troido Date: Sun, 23 Feb 2020 11:30:48 +0100 Subject: removed ToJson trait --- src/util.rs | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/util.rs') 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(val: T, lower: T, upper: T) -> T{ max(min(val, upper), lower) } -pub trait ToJson { - fn to_json(&self) -> Value; -} - - pub type AnyError = Box; pub type Result = std::result::Result; -- cgit