Remove format! in .expect calls, remove ! from end of .expect message as Rust terminates the message with a :

This commit is contained in:
Rohan Bhela committed 2025-04-18 14:10:48 -07:00
1 parent 483afcaf47
commit 4bc04e4539
1 file changed
+2 -6
+2 -6
View File
@@ -76,9 +76,7 @@ async fn main() {
let start = SystemTime::now()
.duration_since(UNIX_EPOCH)
.expect(&format!(
"{RED}[ERROR] System time is before the unix epoch!{RESET}"
))
.expect("System time is before the unix epoch")
.as_secs() as i64;
// Spawn a new task for every result
@@ -106,9 +104,7 @@ async fn main() {
let end = SystemTime::now()
.duration_since(UNIX_EPOCH)
.expect(&format!(
"{RED}[ERROR] System time is before the unix epoch!{RESET}"
))
.expect("System time is before the unix epoch")
.as_secs() as i64;
// Scan results