diff options
| author | troido <troido@protonmail.com> | 2020-02-08 18:50:58 +0100 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-02-08 18:50:58 +0100 |
| commit | 3ebe9e6f792a0457c6f3b37b6e9d92c83f8694e2 (patch) | |
| tree | aaa81d23a4816ebecacc64593419d3d811b7283b /src/parameter.rs | |
| parent | 7dfc7956a7c2df9a1df3ea0b32e0c3d2036fa3ce (diff) | |
don't rebuild the ground each step
Diffstat (limited to 'src/parameter.rs')
| -rw-r--r-- | src/parameter.rs | 2 |
1 files changed, 2 insertions, 0 deletions
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<i64> { if let Self::Int(num) = self { Some(*num) |
