diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2014-06-08 21:57:27 +0530 |
---|---|---|
committer | Manish Goregaokar <manishsmail@gmail.com> | 2014-06-08 21:57:27 +0530 |
commit | cf20d45ea82036ab70bb98f7b9f6066583ca7647 (patch) | |
tree | 10a4ad4186f3fafe6728c10cc1cae90eac4e4042 /src/components/util/str.rs | |
parent | 743dcee0f59d63bfbb820df2412c8e2267b38f66 (diff) | |
download | servo-cf20d45ea82036ab70bb98f7b9f6066583ca7647.tar.gz servo-cf20d45ea82036ab70bb98f7b9f6066583ca7647.zip |
Fix some deprecated warnings for to_owned()
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() |