1
Fork 0

Mass rename of .consume{,_iter}() to .move_iter()

cc #7887
This commit is contained in:
Erick Tryzelaar 2013-08-07 19:21:36 -07:00
parent f0fc9c92ff
commit fad7857c7b
41 changed files with 129 additions and 129 deletions

View file

@ -961,7 +961,7 @@ impl GenericPath for WindowsPath {
match self.filestem() {
Some(stem) => {
// FIXME: #4318 Instead of to_ascii and to_str_ascii, could use
// to_ascii_consume and to_str_consume to not do a unnecessary copy.
// to_ascii_move and to_str_move to not do a unnecessary copy.
match stem.to_ascii().to_lower().to_str_ascii() {
~"con" | ~"aux" | ~"com1" | ~"com2" | ~"com3" | ~"com4" |
~"lpt1" | ~"lpt2" | ~"lpt3" | ~"prn" | ~"nul" => true,
@ -1020,7 +1020,7 @@ impl GenericPath for WindowsPath {
None => None,
// FIXME: #4318 Instead of to_ascii and to_str_ascii, could use
// to_ascii_consume and to_str_consume to not do a unnecessary copy.
// to_ascii_move and to_str_move to not do a unnecessary copy.
Some(ref device) => Some(device.to_ascii().to_upper().to_str_ascii())
},
is_absolute: self.is_absolute,