Bumping clippy & fixing warnings (#1823)
* Bumping clippy * Fixing clippy warnings * Cargo.lock (latest nightly?)
This commit is contained in:
@@ -103,6 +103,7 @@ pub struct Session {
|
||||
}
|
||||
|
||||
impl ws::Handler for Session {
|
||||
#[cfg_attr(feature="dev", allow(collapsible_if))]
|
||||
fn on_request(&mut self, req: &ws::Request) -> ws::Result<(ws::Response)> {
|
||||
let origin = req.header("origin").or_else(|| req.header("Origin")).map(|x| &x[..]);
|
||||
let host = req.header("host").or_else(|| req.header("Host")).map(|x| &x[..]);
|
||||
|
||||
Reference in New Issue
Block a user