aboutsummaryrefslogtreecommitdiff
path: root/include/Uri/Uri.hpp
diff options
context:
space:
mode:
authorRichard Walters <rwalters@digitalstirling.com>2020-10-14 23:09:54 -0700
committerRichard Walters <rwalters@digitalstirling.com>2020-10-14 23:09:54 -0700
commit03b82171f70815e43fbc64d120a20e7a1eebd0bc (patch)
tree3d00526b97bee2b7b848ddf0c006788cd4f4924c /include/Uri/Uri.hpp
parent472c84a39a29bb9a2778cac67f5a9be78eca93bc (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 'include/Uri/Uri.hpp')
0 files changed, 0 insertions, 0 deletions