Skip to content

Commit 5704afe

Browse files
committed
ref: cargo fmt
1 parent 19cb599 commit 5704afe

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

crates/cli/src/command/watch.rs

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,14 @@ pub async fn watch_for_changes(path: Option<String>, with_warning: bool) {
3939
last_run = Instant::now();
4040
}
4141
}
42-
EventKind::Remove(_)
43-
if last_run.elapsed() > Duration::from_millis(500) => {
44-
default(String::from(
45-
"\n\n\n--------------------------------------------------------------------------\n\n",
46-
));
47-
info(String::from("Change detected! Regenerating report..."));
48-
Analyser::new(dir_path.as_str()).report(false, with_warning);
49-
last_run = Instant::now();
50-
}
42+
EventKind::Remove(_) if last_run.elapsed() > Duration::from_millis(500) => {
43+
default(String::from(
44+
"\n\n\n--------------------------------------------------------------------------\n\n",
45+
));
46+
info(String::from("Change detected! Regenerating report..."));
47+
Analyser::new(dir_path.as_str()).report(false, with_warning);
48+
last_run = Instant::now();
49+
}
5150
_ => {}
5251
}
5352
}

crates/cli/src/reader.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,10 @@ impl Reader {
113113
module_name.clone(),
114114
MetaType::ModuleDefinition,
115115
module_definition_file,
116-
) {
117-
result.push(meta_result);
118-
}
116+
)
117+
{
118+
result.push(meta_result);
119+
}
119120

120121
// Handle all typed definition directories.
121122
let type_entries = match fs::read_dir(&module_path) {

0 commit comments

Comments
 (0)