From de80a356752730c49b652e23c6d0e7b2c41f882d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20W=C3=BClker?= Date: Fri, 26 Jul 2024 22:02:43 +0200 Subject: [PATCH] url: Remove redundant spec comments --- crates/url/src/url.rs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/crates/url/src/url.rs b/crates/url/src/url.rs index 570aa256..e7b2332e 100644 --- a/crates/url/src/url.rs +++ b/crates/url/src/url.rs @@ -276,8 +276,6 @@ impl URL { None => { input = input.trim_matches(util::is_c0_or_space); - // If url is not given: - // Set url to a new URL. let url = Self { // This should be a reasonable approximation serialization: ascii::String::with_capacity(input.len()), @@ -286,23 +284,15 @@ impl URL { port: None, }; - // If input contains any leading or trailing C0 control or space, validation error. - - // Remove any leading and trailing C0 control or space from input. url }, }; - // If input contains any ASCII tab or newline, validation error. - - // Remove all ASCII tab or newline from input. let filtered_input: String = input .chars() .filter(|c| !util::is_ascii_tab_or_newline(*c)) .collect(); - // Set encoding to the result of getting an output encoding from encoding. - let mut state_machine = Parser { url, input: ReversibleCharIterator::new(&filtered_input),