m/cup
1
0
mirror of https://github.com/sergi0g/cup.git synced 2025-11-08 05:03:49 -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 => {
let start = Local::now().timestamp_millis();
match *raw || cli.verbose {
match raw {
true => {
let updates = get_all_updates(&cli_config).await;
let end = Local::now().timestamp_millis();
print_raw_updates(&updates);
info!("✨ Checked {} images in {}ms", updates.len(), end - start);
}
false => {
let spinner = Spinner::new();