aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/gecko_string_cache
diff options
context:
space:
mode:
Diffstat (limited to 'components/style/gecko_string_cache')
-rw-r--r--components/style/gecko_string_cache/namespace.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/style/gecko_string_cache/namespace.rs b/components/style/gecko_string_cache/namespace.rs
index 319f15222a9..090243204c8 100644
--- a/components/style/gecko_string_cache/namespace.rs
+++ b/components/style/gecko_string_cache/namespace.rs
@@ -6,7 +6,7 @@
use gecko_bindings::structs::nsIAtom;
use precomputed_hash::PrecomputedHash;
-use std::borrow::{Borrow, Cow};
+use std::borrow::Borrow;
use std::fmt;
use std::ops::Deref;
use string_cache::{Atom, WeakAtom};
@@ -54,8 +54,8 @@ impl Deref for Namespace {
}
}
-impl<'a> From<Cow<'a, str>> for Namespace {
- fn from(s: Cow<'a, str>) -> Self {
+impl<'a> From<&'a str> for Namespace {
+ fn from(s: &'a str) -> Self {
Namespace(Atom::from(s))
}
}