From 919889a1d688a6bbe2edac8705f048f06b1b455c Mon Sep 17 00:00:00 2001 From: Richo Healey Date: Tue, 15 Apr 2014 18:17:48 -0700 Subject: Replace all ~"" with "".to_owned() --- src/libstd/sync/arc.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/libstd/sync') diff --git a/src/libstd/sync/arc.rs b/src/libstd/sync/arc.rs index 498a6252a8f..7ac7700d8d3 100644 --- a/src/libstd/sync/arc.rs +++ b/src/libstd/sync/arc.rs @@ -181,12 +181,12 @@ mod tests { #[test] fn arclike_newN() { // Tests that the many-refcounts-at-once constructors don't leak. - let _ = UnsafeArc::new2(~~"hello"); - let x = UnsafeArc::newN(~~"hello", 0); + let _ = UnsafeArc::new2("hello".to_owned().to_owned()); + let x = UnsafeArc::newN("hello".to_owned().to_owned(), 0); assert_eq!(x.len(), 0) - let x = UnsafeArc::newN(~~"hello", 1); + let x = UnsafeArc::newN("hello".to_owned().to_owned(), 1); assert_eq!(x.len(), 1) - let x = UnsafeArc::newN(~~"hello", 10); + let x = UnsafeArc::newN("hello".to_owned().to_owned(), 10); assert_eq!(x.len(), 10) } } -- cgit 1.4.1-3-g733a5