removed redundant mut from kvdb-memorydb

This commit is contained in:
debris 2017-10-16 10:02:26 +02:00
parent 2ce0eae406
commit fbad6b5514
1 changed files with 3 additions and 3 deletions

View File

@ -71,12 +71,12 @@ impl KeyValueDB for InMemory {
for op in ops {
match op {
DBOp::Insert { col, key, value } => {
if let Some(mut col) = columns.get_mut(&col) {
if let Some(col) = columns.get_mut(&col) {
col.insert(key.into_vec(), value);
}
},
DBOp::InsertCompressed { col, key, value } => {
if let Some(mut col) = columns.get_mut(&col) {
if let Some(col) = columns.get_mut(&col) {
let compressed = UntrustedRlp::new(&value).compress(RlpType::Blocks);
let mut value = DBValue::new();
value.append_slice(&compressed);
@ -84,7 +84,7 @@ impl KeyValueDB for InMemory {
}
},
DBOp::Delete { col, key } => {
if let Some(mut col) = columns.get_mut(&col) {
if let Some(col) = columns.get_mut(&col) {
col.remove(&*key);
}
},