From 0e4cb597727aff2f1350dd283b3374dbd9270e2b Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Tue, 6 Nov 2018 19:02:57 +0100 Subject: [PATCH] Format code Signed-off-by: Matthias Beyer --- lib/core/libimagstore/src/file_abstraction/fs.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/core/libimagstore/src/file_abstraction/fs.rs b/lib/core/libimagstore/src/file_abstraction/fs.rs index 189032ba..c34bc5d4 100644 --- a/lib/core/libimagstore/src/file_abstraction/fs.rs +++ b/lib/core/libimagstore/src/file_abstraction/fs.rs @@ -148,10 +148,9 @@ impl FileAbstraction for FSFileAbstraction { /// FileAbstraction::fill implementation that consumes the Drain and writes everything to the /// filesystem fn fill(&mut self, mut d: Drain) -> Result<()> { - d.iter() - .fold(Ok(()), |acc, (path, element)| { - acc.and_then(|_| self.new_instance(path).write_file_content(&element)) - }) + d.iter().fold(Ok(()), |acc, (path, element)| { + acc.and_then(|_| self.new_instance(path).write_file_content(&element)) + }) } fn pathes_recursively(&self,