1
0
Fork 0
forked from wry/wry

all: address clippy lints

This commit is contained in:
Julian Orth 2022-08-13 17:46:23 +02:00
parent 0fe59effe2
commit ae991b9038
28 changed files with 84 additions and 70 deletions

View file

@ -148,17 +148,14 @@ impl Acceptor {
}
}
let acc = Rc::new(Acceptor { socket });
let mut futures = vec![];
futures.push(
let futures = vec![
state
.eng
.spawn(accept(acc.socket.secure.clone(), state.clone(), true)),
);
futures.push(
state
.eng
.spawn(accept(acc.socket.insecure.clone(), state.clone(), false)),
);
];
state.acceptor.set(Some(acc.clone()));
Ok((acc, futures))
}