Skip to content

Commit 0cdc3cc

Browse files
committed
CRC: use contains instead of find.is_some() and remove unnecessary import
Signed-off-by: Jacinta Ferrant <[email protected]>
1 parent ae201b5 commit 0cdc3cc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stackslib/src/net/dns.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ mod test {
500500
client.try_recv().unwrap();
501501
let resolved_err = client.poll_lookup("www.google.com", 80).unwrap().unwrap();
502502
assert!(
503-
format!("{resolved_err:?}").find("timed out").is_some(),
503+
format!("{resolved_err:?}").contains("timed out"),
504504
"{resolved_err:?}"
505505
);
506506
dns_thread_shutdown(client, thread_handle);

testnet/stacks-node/src/tests/neon_integrations.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use std::path::{Path, PathBuf};
33
use std::sync::atomic::{AtomicU64, Ordering};
44
use std::sync::{mpsc, Arc};
55
use std::time::{Duration, Instant};
6-
use std::{cmp, env, fs, io, panic, thread};
6+
use std::{cmp, env, fs, io, thread};
77

88
use clarity::vm::ast::stack_depth_checker::AST_CALL_STACK_DEPTH_BUFFER;
99
use clarity::vm::ast::ASTRules;

0 commit comments

Comments
 (0)