File tree 4 files changed +6
-6
lines changed
4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -329,11 +329,11 @@ pub mod rt {
329
329
// For strings, precision is the maximum characters
330
330
// displayed
331
331
let mut unpadded = match cv. precision {
332
- CountImplied => s. to_unique ( ) ,
332
+ CountImplied => s. to_owned ( ) ,
333
333
CountIs ( max) => if max as uint < str:: char_len ( s ) {
334
334
str:: substr ( s, 0 u, max as uint )
335
335
} else {
336
- s. to_unique ( )
336
+ s. to_owned ( )
337
337
}
338
338
} ;
339
339
return unsafe { pad ( cv, move unpadded, PadNozero ) } ;
Original file line number Diff line number Diff line change @@ -225,7 +225,7 @@ pub fn swap_unwrap<T>(opt: &mut Option<T>) -> T {
225
225
226
226
pub pure fn unwrap_expect < T > ( opt : Option < T > , reason : & str ) -> T {
227
227
//! As unwrap, but with a specified failure message.
228
- if opt. is_none ( ) { fail reason. to_unique ( ) ; }
228
+ if opt. is_none ( ) { fail reason. to_owned ( ) ; }
229
229
unwrap ( move opt)
230
230
}
231
231
Original file line number Diff line number Diff line change @@ -2135,7 +2135,7 @@ pub trait StrSlice {
2135
2135
pure fn trim ( ) -> ~str ;
2136
2136
pure fn trim_left ( ) -> ~str ;
2137
2137
pure fn trim_right ( ) -> ~str ;
2138
- pure fn to_unique ( ) -> ~str ;
2138
+ pure fn to_owned ( ) -> ~str ;
2139
2139
pure fn to_managed ( ) -> @str ;
2140
2140
pure fn char_at ( i : uint ) -> char ;
2141
2141
}
@@ -2258,7 +2258,7 @@ impl &str: StrSlice {
2258
2258
pure fn trim_right ( ) -> ~str { trim_right ( self ) }
2259
2259
2260
2260
#[ inline]
2261
- pure fn to_unique ( ) -> ~str { self . slice ( 0 , self . len ( ) ) }
2261
+ pure fn to_owned ( ) -> ~str { self . slice ( 0 , self . len ( ) ) }
2262
2262
2263
2263
#[ inline]
2264
2264
pure fn to_managed ( ) -> @str {
Original file line number Diff line number Diff line change @@ -897,7 +897,7 @@ pub impl Deserializer: serialization::Deserializer {
897
897
// FIXME(#3148) This hint should not be necessary.
898
898
let obj: & self /~Object = obj;
899
899
900
- match obj. find_ref ( & name. to_unique ( ) ) {
900
+ match obj. find_ref ( & name. to_owned ( ) ) {
901
901
None => fail fmt ! ( "no such field: %s" , name) ,
902
902
Some ( json) => {
903
903
self . stack . push ( json) ;
You can’t perform that action at this time.
0 commit comments