summaryrefslogtreecommitdiff
path: root/src/parameter.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/parameter.rs')
-rw-r--r--src/parameter.rs2
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)