1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-09-01 08:27:17 +02:00

Fix code style (#65)

* Fix clippy warnings

* cargo fmt

* Remove redundant lifetime
This commit is contained in:
Yuki Okushi
2019-11-15 00:28:29 +09:00
committed by GitHub
parent 13049b80ca
commit be7904fd57
14 changed files with 24 additions and 25 deletions

View File

@@ -133,8 +133,7 @@ impl<T> Receiver<T> {
let items = match self.state {
State::Open(ref state) => {
let mut state = state.borrow_mut();
let items = mem::replace(&mut state.buffer, VecDeque::new());
items
mem::replace(&mut state.buffer, VecDeque::new())
}
State::Closed(_) => return,
};