Fix name in function arguments.
This commit is contained in:
parent
5b3c90f666
commit
d952c25a92
|
@ -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, ¤t_file_name) {
|
||||
found_expression = true;
|
||||
break;
|
||||
break 'dir;
|
||||
}
|
||||
}
|
||||
if found_expression {
|
||||
break;
|
||||
}
|
||||
|
||||
// Creating new file entry
|
||||
let fe: FileEntry = FileEntry {
|
||||
|
|
|
@ -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> {
|
||||
|
|
Loading…
Reference in a new issue