diff options
Diffstat (limited to 'src/components/util/str.rs')
-rw-r--r-- | src/components/util/str.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/util/str.rs b/src/components/util/str.rs index 28412dd55e7..69e50a78e59 100644 --- a/src/components/util/str.rs +++ b/src/components/util/str.rs @@ -10,7 +10,7 @@ pub type StaticCharVec = &'static [char]; pub type StaticStringVec = &'static [&'static str]; pub fn null_str_as_empty(s: &Option<DOMString>) -> DOMString { - // We don't use map_default because it would allocate "".to_owned() even for Some. + // We don't use map_default because it would allocate "".to_string() even for Some. match *s { Some(ref s) => s.clone(), None => "".to_string() |