aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDeterminant <tederminant@gmail.com>2020-06-12 16:11:18 -0400
committerDeterminant <tederminant@gmail.com>2020-06-12 16:11:18 -0400
commit37ac8fdadb79e041dfdd3038f30f48e828b280f8 (patch)
tree25d4d18ce5df04f67580a1905be4f3d955f29f33 /examples
parentc3c606a9f6754b115054569304ae612225da3ed3 (diff)
finish all async interface
Diffstat (limited to 'examples')
-rw-r--r--examples/demo1.rs4
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, ()> {