1
0
Fork 0
mirror of synced 2024-06-14 16:35:23 +12:00

Fix name in function arguments.

This commit is contained in:
Caduser2020 2020-10-07 15:32:23 -05:00
parent 5b3c90f666
commit d952c25a92
2 changed files with 4 additions and 9 deletions

View file

@ -110,7 +110,7 @@ impl BigFile {
continue;
} // Permissions denied
};
for entry in read_dir {
'dir: for entry in read_dir {
let entry_data = match entry {
Ok(t) => t,
Err(_) => {
@ -195,16 +195,11 @@ impl BigFile {
};
// Checking expressions
let mut found_expression: bool = false;
for expression in &self.excluded_items.items {
if Common::regex_check(expression, &current_file_name) {
found_expression = true;
break;
break 'dir;
}
}
if found_expression {
break;
}
// Creating new file entry
let fe: FileEntry = FileEntry {

View file

@ -7,9 +7,9 @@ use std::time::SystemTime;
pub struct Common();
impl Common {
/// Printing time which took between start and stop point and prints also function name
pub fn print_time(_start_time: SystemTime, _end_time: SystemTime, _function_name: String) {
pub fn print_time(start_time: SystemTime, end_time: SystemTime, function_name: String) {
#[cfg(debug_assertions)]
println!("Execution of function \"{}\" took {:?}", _function_name, _end_time.duration_since(_start_time).expect("Time cannot go reverse."));
println!("Execution of function \"{}\" took {:?}", function_name, end_time.duration_since(start_time).expect("Time cannot go reverse."));
}
pub fn delete_multiple_entries(entries: &[String]) -> Vec<String> {