diff --git a/lib/src/kvs/file/mod.rs b/lib/src/kvs/file/mod.rs index 28e2a707..1d46a2e2 100644 --- a/lib/src/kvs/file/mod.rs +++ b/lib/src/kvs/file/mod.rs @@ -172,9 +172,9 @@ impl Transaction { return Err(Error::TxReadonly); } // Remove the key - let res = self.tx.del(key.into())?; + self.tx.del(key.into())?; // Return result - Ok(res) + Ok(()) } // Delete a key pub fn delc(&mut self, key: K, chk: Option) -> Result<(), Error> @@ -191,9 +191,9 @@ impl Transaction { return Err(Error::TxReadonly); } // Remove the key - let res = self.tx.delc(key.into(), chk.map(|v| v.into()))?; + self.tx.delc(key.into(), chk.map(|v| v.into()))?; // Return result - Ok(res) + Ok(()) } // Retrieve a range of keys from the databases pub fn scan(&mut self, rng: Range, limit: u32) -> Result, Error> diff --git a/lib/src/kvs/mem/mod.rs b/lib/src/kvs/mem/mod.rs index 2f010f63..994d85bc 100644 --- a/lib/src/kvs/mem/mod.rs +++ b/lib/src/kvs/mem/mod.rs @@ -172,9 +172,9 @@ impl Transaction { return Err(Error::TxReadonly); } // Remove the key - let res = self.tx.del(key.into())?; + self.tx.del(key.into())?; // Return result - Ok(res) + Ok(()) } // Delete a key pub fn delc(&mut self, key: K, chk: Option) -> Result<(), Error> @@ -191,9 +191,9 @@ impl Transaction { return Err(Error::TxReadonly); } // Remove the key - let res = self.tx.delc(key.into(), chk.map(|v| v.into()))?; + self.tx.delc(key.into(), chk.map(|v| v.into()))?; // Return result - Ok(res) + Ok(()) } // Retrieve a range of keys from the databases pub fn scan(&mut self, rng: Range, limit: u32) -> Result, Error> diff --git a/lib/src/sql/array.rs b/lib/src/sql/array.rs index cf0b5b19..269b24e9 100644 --- a/lib/src/sql/array.rs +++ b/lib/src/sql/array.rs @@ -40,7 +40,7 @@ impl From> for Array { } } -impl<'a> From> for Array { +impl From> for Array { fn from(v: Vec<&str>) -> Self { Array(v.into_iter().map(Value::from).collect()) } diff --git a/lib/src/sql/value/value.rs b/lib/src/sql/value/value.rs index 3844cd40..4a97e206 100644 --- a/lib/src/sql/value/value.rs +++ b/lib/src/sql/value/value.rs @@ -372,7 +372,7 @@ impl From for Value { } } -impl<'a> From> for Value { +impl From> for Value { fn from(v: Vec<&str>) -> Self { Value::Array(Array::from(v)) }