File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
language : rust
2
- rust : nightly-2019-05-09
2
+ rust : nightly-2019-06-02
3
3
cache : cargo
4
4
5
5
before_script :
Original file line number Diff line number Diff line change @@ -44,7 +44,9 @@ impl<State: Send + Sync + 'static> Middleware<State> for CookiesMiddleware {
44
44
45
45
let cookie_jar = cookie_data. content . clone ( ) ;
46
46
47
- cx. extensions_mut ( ) . insert ( cookie_data) ;
47
+ // The `let _ = ...` is a workaround for issue: https://github.com/rustasync/tide/issues/278
48
+ // Solution is according to suggestion in https://github.com/rust-lang/rust/issues/61579#issuecomment-500436524
49
+ let _ = cx. extensions_mut ( ) . insert ( cookie_data) ;
48
50
let mut res = next. run ( cx) . await ;
49
51
let headers = res. headers_mut ( ) ;
50
52
for cookie in cookie_jar. read ( ) . unwrap ( ) . delta ( ) {
You can’t perform that action at this time.
0 commit comments