aboutsummaryrefslogtreecommitdiff
path: root/src/parse_host_port.rs
AgeCommit message (Collapse)Author
2021-03-29Version 1.3.1Richard Walters
* Suppress more lints caused by `named_tuple`. * Remove unnecessary `Result` from infallible functions.
2020-10-30Fix new warnings from latest Rust toolsRichard Walters
2020-10-30Add and apply rustfmt configurationRichard Walters
2020-10-14Distribute tests closer to the code they testRichard Walters
2020-10-14Fix new clippy warningsRichard 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-13Consolidate crate-wide warning attributes to crate level (lib.rs)Richard Walters
2020-10-13Rust refactoringRichard 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.