1
0
mirror of https://github.com/fafhrd91/actix-web synced 2024-11-28 01:52:57 +01:00

do no move self

This commit is contained in:
Nikolay Kim 2019-03-10 17:02:14 -07:00
parent 615fbb49bd
commit 50a0cb5653

View File

@ -126,7 +126,7 @@ impl TestRequest {
} }
/// Set cookie for this request /// Set cookie for this request
pub fn cookie<'a>(mut self, cookie: Cookie<'a>) -> Self { pub fn cookie<'a>(&mut self, cookie: Cookie<'a>) -> &mut Self {
parts(&mut self.0).cookies.add(cookie.into_owned()); parts(&mut self.0).cookies.add(cookie.into_owned());
self self
} }