aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/gecko_string_cache/mod.rs
diff options
context:
space:
mode:
authorMichael Layzell <michael@thelayzells.com>2017-09-26 11:02:35 -0400
committerMichael Layzell <michael@thelayzells.com>2017-09-26 11:03:35 -0400
commitc1c98659b9b79c37df5536390b986310818659a7 (patch)
tree54dade36c52ed536928bd3d8985a458c4425a3c2 /components/style/gecko_string_cache/mod.rs
parentcc8b69bae1e1608c432ed80af077a2ed7d78f698 (diff)
downloadservo-c1c98659b9b79c37df5536390b986310818659a7.tar.gz
servo-c1c98659b9b79c37df5536390b986310818659a7.zip
Update ns[C]String::from -> ns[C]Str::from where possible
Diffstat (limited to 'components/style/gecko_string_cache/mod.rs')
-rw-r--r--components/style/gecko_string_cache/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/style/gecko_string_cache/mod.rs b/components/style/gecko_string_cache/mod.rs
index 0c75e0c43ca..20121d5f548 100644
--- a/components/style/gecko_string_cache/mod.rs
+++ b/components/style/gecko_string_cache/mod.rs
@@ -11,7 +11,7 @@ use gecko_bindings::bindings::Gecko_Atomize;
use gecko_bindings::bindings::Gecko_Atomize16;
use gecko_bindings::bindings::Gecko_ReleaseAtom;
use gecko_bindings::structs::{nsIAtom, nsIAtom_AtomKind};
-use nsstring::{nsAString, nsString};
+use nsstring::{nsAString, nsStr};
use precomputed_hash::PrecomputedHash;
use std::ascii::AsciiExt;
use std::borrow::{Cow, Borrow};
@@ -346,7 +346,7 @@ impl<'a> From<&'a str> for Atom {
impl<'a> From<&'a [u16]> for Atom {
#[inline]
fn from(slice: &[u16]) -> Atom {
- Atom::from(&*nsString::from(slice))
+ Atom::from(&*nsStr::from(slice))
}
}