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.
pull/18/head
Nefo Fortressia 2021-12-14 05:59:19 +07:00
parent 0de1d86494
commit 7478d894ea
Signed by: fortressia
GPG Key ID: 6D7972CC76174995
1 changed files with 22 additions and 23 deletions

View File

@ -125,31 +125,30 @@ impl WorkspaceImplementedEditor for EchidnaEditor {
self.open_folder(folder); self.open_folder(folder);
} }
} }
}
/** /**
* *
* *
*/ */
fn recursive_add_files_into_tree_store(&self, parent_file: File, tree: &TreeStore) { fn recursive_add_files_into_tree_store(&self, parent_file: File, tree: &TreeStore) {
let child_enumerate_cancellable = Cancellable::new(); let child_enumerate_cancellable = Cancellable::new();
let child_files = parent_file let child_files = parent_file
.enumerate_children( .enumerate_children(
"*", "*",
FileQueryInfoFlags::NONE, FileQueryInfoFlags::NONE,
Some(&child_enumerate_cancellable), Some(&child_enumerate_cancellable),
)
.expect(
format!(
"Could not look up the children files of {:?} because:\n{:#?}",
filepath
) )
.as_str(), .expect(
); format!(
let filepath = &parent_file "Could not look up the children files of {:?} because:\n{:#?}",
.path() filepath
.expect("Could not get the file path of the file."); )
.as_str(),
);
let filepath = &parent_file
.path()
.expect("Could not get the file path of the file.");
for file_iter in files { for file_iter in files {
let file_info = file_iter.expect(); let file_info = file_iter.expect();
let file = parent_file.child(file_info.name()); let file = parent_file.child(file_info.name());