mirror of
https://git.funtimes909.xyz/ServerSeekerV2/ServerSeekerV2.git
synced 2026-10-12 02:18:11 +08:00
Remove format! in .expect calls, remove ! from end of .expect message as Rust terminates the message with a :
This commit is contained in:
1 file changed
+2
-6
+2
-6
@@ -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
|
||||
|
||||
Reference in new issue
Block a user