Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
error: use of `.unwrap_or_else(..)` to construct default value --> src/http.rs:73:16 | 73 | let resp = get_html_section(&resp, "main").unwrap_or_else(|| "".to_string()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `get_html_section(&resp, "main").unwrap_or_default()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_else_default error: use of `.unwrap_or_else(..)` to construct default value --> src/http.rs:37:17 | 37 | let brief = get_html_section(&brief, "main").unwrap_or_else(|| "".to_string()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `get_html_section(&brief, "main").unwrap_or_default()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_else_default = note: `-D clippy::unwrap-or-else-default` implied by `-D warnings`
- Loading branch information