about summary refs log tree commit diff
path: root/src/libstd/c_str.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-05-27 17:46:48 -0700
committerbors <bors@rust-lang.org>2014-05-27 17:46:48 -0700
commit911cc9c35234ab12a4b9a6fc1cb35b52556f242d (patch)
treef434006eca9cc58dd01c2a033c505d606d2fced2 /src/libstd/c_str.rs
parent30bf73fd789ad1414284f59b005e85304ff963ad (diff)
parentc256dcf8b66fb7100e2d735d6640cf76cb2d22f5 (diff)
downloadrust-911cc9c35234ab12a4b9a6fc1cb35b52556f242d.tar.gz
rust-911cc9c35234ab12a4b9a6fc1cb35b52556f242d.zip
auto merge of #14414 : richo/rust/features/nerf_unused_string_fns, r=alexcrichton
This should block on #14323
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) } );