From 7478d894eaa4962c77be45a207f86b94e5efc1a0 Mon Sep 17 00:00:00 2001 From: Nefo Fortressia Date: Tue, 14 Dec 2021 05:59:19 +0700 Subject: [PATCH] fix: fix unexpected } in workspace.rs I think this is due to git add -p mistakes when I did 1b9f20b. Not affecting anything, as workspace.rs is still WIP. --- src/components/window/workspace.rs | 45 +++++++++++++++--------------- 1 file changed, 22 insertions(+), 23 deletions(-) diff --git a/src/components/window/workspace.rs b/src/components/window/workspace.rs index 9cc5c6c..b7e29d3 100644 --- a/src/components/window/workspace.rs +++ b/src/components/window/workspace.rs @@ -125,31 +125,30 @@ impl WorkspaceImplementedEditor for EchidnaEditor { self.open_folder(folder); } } -} -/** - * - * - */ -fn recursive_add_files_into_tree_store(&self, parent_file: File, tree: &TreeStore) { - let child_enumerate_cancellable = Cancellable::new(); - let child_files = parent_file - .enumerate_children( - "*", - FileQueryInfoFlags::NONE, - Some(&child_enumerate_cancellable), - ) - .expect( - format!( - "Could not look up the children files of {:?} because:\n{:#?}", - filepath + /** + * + * + */ + fn recursive_add_files_into_tree_store(&self, parent_file: File, tree: &TreeStore) { + let child_enumerate_cancellable = Cancellable::new(); + let child_files = parent_file + .enumerate_children( + "*", + FileQueryInfoFlags::NONE, + Some(&child_enumerate_cancellable), ) - .as_str(), - ); - let filepath = &parent_file - .path() - .expect("Could not get the file path of the file."); - + .expect( + format!( + "Could not look up the children files of {:?} because:\n{:#?}", + filepath + ) + .as_str(), + ); + let filepath = &parent_file + .path() + .expect("Could not get the file path of the file."); + for file_iter in files { let file_info = file_iter.expect(); let file = parent_file.child(file_info.name());