mirror of
https://github.com/fafhrd91/actix-web
synced 2025-08-31 00:50:20 +02:00
update tests; clippy warnings
This commit is contained in:
@@ -141,8 +141,8 @@ impl<A> HttpContext<A> where A: Actor<Context=Self> + Route {
|
||||
|
||||
/// Returns drain future
|
||||
pub fn drain(&mut self) -> Drain<A> {
|
||||
let fut = Rc::new(RefCell::new(DrainFut::new()));
|
||||
self.stream.push_back(Frame::Drain(fut.clone()));
|
||||
let fut = Rc::new(RefCell::new(DrainFut::default()));
|
||||
self.stream.push_back(Frame::Drain(Rc::clone(&fut)));
|
||||
self.modified = true;
|
||||
Drain{ a: PhantomData, inner: fut }
|
||||
}
|
||||
|
Reference in New Issue
Block a user