diff options
Diffstat (limited to 'examples/demo1.rs')
-rw-r--r-- | examples/demo1.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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<dyn WALFile>)) } - 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<Self::FileNameIter, ()> { |