warning: use of `unwrap_or` followed by a function call --> src/handshake/client.rs:55:53 | 55 | let mut headers = self.extra_headers.take().unwrap_or(vec![]); | ^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or_else(|| < [ _ ] > :: into_vec ( box [ $ ( $ x ) , * ] ))` | = note: #[warn(or_fun_call)] on by default = help: for further information visit https://rust-lang-nursery.github.io/rust-clippy/v0.0.212/index.html#or_fun_callpull/39/head
parent
556db990b5
commit
c7a71106ac
Loading…
Reference in new issue