You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Due to rust-lang/rust#22252, r-value temporaries
outlive the lifetimes of variables bound with let statements in a function
body. Because of this, device.rs fails to compile against newer rustc
nightlies.
This implements a simple workaround that binds the result of the match in
`request_code` to a local variable before returning it. This allows it to have
the same lifetime as `req` in one of the previous let bindings.
0 commit comments