diff options
author | Richard Walters <rwalters@digitalstirling.com> | 2020-10-14 23:09:54 -0700 |
---|---|---|
committer | Richard Walters <rwalters@digitalstirling.com> | 2020-10-14 23:09:54 -0700 |
commit | 03b82171f70815e43fbc64d120a20e7a1eebd0bc (patch) | |
tree | 3d00526b97bee2b7b848ddf0c006788cd4f4924c /rustfmt.toml | |
parent | 472c84a39a29bb9a2778cac67f5a9be78eca93bc (diff) |
Fix new clippy warnings
* Suppress clippy::option_if_let_else in
parse_host_port::State::next_percent_encoded_character
because the warning recommends Option::map_or which
we cannot use because it leads to using a moved value.
* Use matches! instead in uri::Uri::is_path_absolute as recommended.
* Use and_then instead of if let/else in uri::Uri::port as recommended;
note we need to replace the & with as_ref for self.authority.
* In uri::Uri::resolve, replace the large if let/else with map_or
as recommended, although it's not clear if it makes it any
easier to read. ¯\_(ツ)_/¯
Diffstat (limited to 'rustfmt.toml')
0 files changed, 0 insertions, 0 deletions