diff --git a/src/helpers/database.rs b/src/helpers/database.rs index 24583ba..16e7ce5 100644 --- a/src/helpers/database.rs +++ b/src/helpers/database.rs @@ -73,8 +73,9 @@ impl QueryInfo { } } - pub fn cond(&mut self, key: &str, val: &str) { + pub fn cond(mut self, key: &str, val: &str) -> QueryInfo { self.conditions.insert(key.to_string(), val.to_string()); + self } }