summaryrefslogtreecommitdiffstats
path: root/vendor/url/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/url/src/lib.rs')
-rw-r--r--vendor/url/src/lib.rs9
1 files changed, 6 insertions, 3 deletions
diff --git a/vendor/url/src/lib.rs b/vendor/url/src/lib.rs
index 58c7c07cd..b17b82573 100644
--- a/vendor/url/src/lib.rs
+++ b/vendor/url/src/lib.rs
@@ -134,7 +134,7 @@ url = { version = "2", features = ["debugger_visualizer"] }
*/
-#![doc(html_root_url = "https://docs.rs/url/2.4.1")]
+#![doc(html_root_url = "https://docs.rs/url/2.5.0")]
#![cfg_attr(
feature = "debugger_visualizer",
debugger_visualizer(natvis_file = "../../debug_metadata/url.natvis")
@@ -205,6 +205,7 @@ pub struct Url {
/// Full configuration for the URL parser.
#[derive(Copy, Clone)]
+#[must_use]
pub struct ParseOptions<'a> {
base_url: Option<&'a Url>,
encoding_override: EncodingOverride<'a>,
@@ -1566,7 +1567,9 @@ impl Url {
});
} else {
self.query_start = None;
- self.strip_trailing_spaces_from_opaque_path();
+ if fragment.is_none() {
+ self.strip_trailing_spaces_from_opaque_path();
+ }
}
self.restore_already_parsed_fragment(fragment);
@@ -2697,7 +2700,7 @@ impl Ord for Url {
impl PartialOrd for Url {
#[inline]
fn partial_cmp(&self, other: &Self) -> Option<cmp::Ordering> {
- self.serialization.partial_cmp(&other.serialization)
+ Some(self.cmp(other))
}
}