Skip to content

Commit d54dd6e

Browse files
committed
fmt
1 parent 5582ae3 commit d54dd6e

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

tests/integration_test.rs

+10-8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use atomic_counter::AtomicCounter;
2-
use std::fs::{create_dir_all, File};
2+
use std::fs::{File, create_dir_all};
33
use std::net::{Ipv4Addr, SocketAddrV4, TcpListener};
44
use std::time::Instant;
55
use std::{thread, time};
@@ -484,13 +484,15 @@ fn new_tcp_listener() -> TcpListener {
484484
}
485485

486486
fn listen_async(listener: TcpListener) {
487-
thread::spawn(move || loop {
488-
match listener.accept() {
489-
Ok(_) => {
490-
println!("Connection received!");
491-
}
492-
Err(_) => {
493-
println!("Error in received connection!");
487+
thread::spawn(move || {
488+
loop {
489+
match listener.accept() {
490+
Ok(_) => {
491+
println!("Connection received!");
492+
}
493+
Err(_) => {
494+
println!("Error in received connection!");
495+
}
494496
}
495497
}
496498
});

0 commit comments

Comments
 (0)