m/cup
1
0
mirror of https://github.com/sergi0g/cup.git synced 2025-11-12 07:03:48 -05:00

fix issue #30 with raw returning invalid json

This commit is contained in:
Sergio
2024-09-24 17:19:59 +03:00
parent 6b15d8dfad
commit 65b2bece03

View File

@@ -97,12 +97,10 @@ async fn main() {
} }
None => { None => {
let start = Local::now().timestamp_millis(); let start = Local::now().timestamp_millis();
match *raw || cli.verbose { match raw {
true => { true => {
let updates = get_all_updates(&cli_config).await; let updates = get_all_updates(&cli_config).await;
let end = Local::now().timestamp_millis();
print_raw_updates(&updates); print_raw_updates(&updates);
info!("✨ Checked {} images in {}ms", updates.len(), end - start);
} }
false => { false => {
let spinner = Spinner::new(); let spinner = Spinner::new();