Skip to content

Commit d45dc32

Browse files
committed
f Reluctantly remove the last explicit Ok(())
1 parent 121b96c commit d45dc32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/io/sqlite_store.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,11 @@ impl KVStore for SqliteStore {
109109
":value": buf,
110110
},
111111
)
112+
.map(|_| ())
112113
.map_err(|e| {
113114
let msg = format!("Failed to write to key {}/{}: {}", namespace, key, e);
114115
std::io::Error::new(std::io::ErrorKind::Other, msg)
115-
})?;
116-
Ok(())
116+
})
117117
}
118118

119119
fn remove(&self, namespace: &str, key: &str) -> std::io::Result<bool> {

0 commit comments

Comments
 (0)