From 37ac8fdadb79e041dfdd3038f30f48e828b280f8 Mon Sep 17 00:00:00 2001 From: Determinant Date: Fri, 12 Jun 2020 16:11:18 -0400 Subject: finish all async interface --- examples/demo1.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/demo1.rs') diff --git a/examples/demo1.rs b/examples/demo1.rs index a360885..625f40d 100644 --- a/examples/demo1.rs +++ b/examples/demo1.rs @@ -101,9 +101,9 @@ impl WALStore for WALStoreTest { WALFileTest::new(self.rootfd, &filename).and_then(|f| Ok(Box::new(f) as Box)) } - fn remove_file(&self, filename: &str) -> Result<(), ()> { + async fn remove_file(&self, filename: String) -> Result<(), ()> { println!("remove_file(filename={})", filename); - unlinkat(Some(self.rootfd), filename, UnlinkatFlags::NoRemoveDir).or_else(|_| Err(())) + unlinkat(Some(self.rootfd), &filename, UnlinkatFlags::NoRemoveDir).or_else(|_| Err(())) } fn enumerate_files(&self) -> Result { -- cgit v1.2.3-70-g09d2