From 61201082c8d87439085085d32dab766f2535e354 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Wed, 21 Sep 2016 09:46:07 +0200 Subject: [PATCH] Fix: FileAbstraction::remove_file(): Add implementation --- libimagstore/src/file_abstraction.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libimagstore/src/file_abstraction.rs b/libimagstore/src/file_abstraction.rs index 90204998..dc04d235 100644 --- a/libimagstore/src/file_abstraction.rs +++ b/libimagstore/src/file_abstraction.rs @@ -62,7 +62,8 @@ mod fs { }; } - pub fn remove_file(_: &PathBuf) -> Result<(), SE> { + pub fn remove_file(path: &PathBuf) -> Result<(), SE> { + MAP.lock().unwrap().remove(path); Ok(()) }