Skip to content

Commit 2a7a0ce

Browse files
committed
feat(adapters-kv): fix formate
Signed-off-by: owl <[email protected]>
1 parent 899ba19 commit 2a7a0ce

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

core/src/raw/adapters/typed_kv/backend.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -223,25 +223,25 @@ impl<S: Adapter> Accessor for Backend<S> {
223223
}
224224

225225
async fn rename(&self, from: &str, to: &str, _: OpRename) -> Result<RpRename> {
226-
return match self.copy(from, to, OpCopy {}).await {
226+
match self.copy(from, to, OpCopy {}).await {
227227
Ok(_) => {
228228
let from = build_abs_path(&self.root, from);
229229
self.kv.delete(&from).await?;
230230
Ok(RpRename::default())
231231
}
232232
Err(e) => Err(e),
233-
};
233+
}
234234
}
235235

236236
fn blocking_rename(&self, from: &str, to: &str, _: OpRename) -> Result<RpRename> {
237-
return match self.blocking_copy(from, to, OpCopy {}) {
237+
match self.blocking_copy(from, to, OpCopy {}) {
238238
Ok(_) => {
239239
let from = build_abs_path(&self.root, from);
240240
self.kv.blocking_delete(&from)?;
241241
Ok(RpRename::default())
242242
}
243243
Err(e) => Err(e),
244-
};
244+
}
245245
}
246246

247247
async fn copy(&self, from: &str, to: &str, _: OpCopy) -> Result<RpCopy> {

0 commit comments

Comments
 (0)