From 3ebe9e6f792a0457c6f3b37b6e9d92c83f8694e2 Mon Sep 17 00:00:00 2001 From: troido Date: Sat, 8 Feb 2020 18:50:58 +0100 Subject: don't rebuild the ground each step --- src/parameter.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/parameter.rs') diff --git a/src/parameter.rs b/src/parameter.rs index 6d15e93..41137bb 100644 --- a/src/parameter.rs +++ b/src/parameter.rs @@ -11,6 +11,7 @@ pub enum Parameter { impl Parameter { + #[allow(dead_code)] pub fn string(string: &str) -> Self { Self::String(string.to_string()) } @@ -58,6 +59,7 @@ impl Parameter { Some(self.as_str()?.to_string()) } + #[allow(dead_code)] pub fn as_i64(&self) -> Option { if let Self::Int(num) = self { Some(*num) -- cgit