Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-10-14 | Fix new clippy warnings | Richard Walters | |
* 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. ¯\_(ツ)_/¯ | |||
2020-10-13 | Consolidate crate-wide warning attributes to crate level (lib.rs) | Richard Walters | |
2020-10-13 | Rust refactoring | Richard Walters | |
* Move Context, Error, and character classes to their own modules. * Move host/port parsing and IP address validation to their own modules, and break the code up into different functions to process their state machines. |