summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
diff options
context:
space:
mode:
authorRicho Healey <richo@psych0tik.net>2014-05-25 03:10:11 -0700
committerRicho Healey <richo@psych0tik.net>2014-05-27 11:11:15 -0700
commit4348e23b269739657d934b532ad061bfd6d92309 (patch)
tree4dece24751feb7145444c52fd05a1c5f7ca2de9d /src/libsyntax/parse/parser.rs
parentc7fe4ffe3d8315dfe98bee6d040b5a0381daab91 (diff)
downloadrust-4348e23b269739657d934b532ad061bfd6d92309.tar.gz
rust-4348e23b269739657d934b532ad061bfd6d92309.zip
std: Remove String's to_owned
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
-rw-r--r--src/libsyntax/parse/parser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index ae5f16c2580..b5ddd6cd20f 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -4159,7 +4159,7 @@ impl<'a> Parser<'a> {
                 outer_attrs, "path") {
             Some(d) => (dir_path.join(d), true),
             None => {
-                let mod_name = mod_string.get().to_owned();
+                let mod_name = mod_string.get().to_string();
                 let default_path_str = format!("{}.rs", mod_name);
                 let secondary_path_str = format!("{}/mod.rs", mod_name);
                 let default_path = dir_path.join(default_path_str.as_slice());