Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix clippy warning about ok_or() followed by a function call
warning: use of `ok_or` followed by a function call --> src/lib.rs:379:10 | 379 | .ok_or(tungstenite::Error::Url("Url scheme not supported".into())) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `ok_or_else(|| tungstenite::Error::Url("Url scheme not supported".into()))`
- Loading branch information