about summary refs log tree commit diff
path: root/src/libstd/c_str.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstd/c_str.rs')
-rw-r--r--src/libstd/c_str.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/c_str.rs b/src/libstd/c_str.rs
index 029f7162b42..983d76a0844 100644
--- a/src/libstd/c_str.rs
+++ b/src/libstd/c_str.rs
@@ -669,7 +669,7 @@ mod tests {
     #[test]
     fn test_clone_noleak() {
         fn foo(f: |c: &CString|) {
-            let s = "test".to_owned();
+            let s = "test".to_string();
             let c = s.to_c_str();
             // give the closure a non-owned CString
             let mut c_ = c.with_ref(|c| unsafe { CString::new(c, false) } );