diff --git a/src/uri.rs b/src/uri.rs index ea2ea8de..36c170c8 100644 --- a/src/uri.rs +++ b/src/uri.rs @@ -274,6 +274,13 @@ impl PartialEq for Uri { } } +impl PartialEq for Uri { + fn eq(&self, other: &str) -> bool { + self.source.as_str() == other + } +} + +// FIXME delete for 0.12 impl<'a> PartialEq<&'a str> for Uri { fn eq(&self, other: & &'a str) -> bool { self.source.as_str() == *other