fix: fix unexpected } in workspace.rs
Merge branch 'fix/unexpected-curly-bracket' into 'main' See merge request EchidnaHQ/Echidna!18merge-requests/13/merge
commit
3c9b665cbf
|
@ -123,31 +123,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());
|
||||||
|
|
Loading…
Reference in New Issue