librustc: Remove ~"string"
and &"string"
from the language
This commit is contained in:
parent
a3f9f37014
commit
4baff4e15f
11 changed files with 58 additions and 72 deletions
|
@ -1740,7 +1740,7 @@ impl<T: Iterator<char>> Builder<T> {
|
|||
Some(NumberValue(n)) => { Ok(Number(n)) }
|
||||
Some(BooleanValue(b)) => { Ok(Boolean(b)) }
|
||||
Some(StringValue(ref mut s)) => {
|
||||
let mut temp = ~"";
|
||||
let mut temp = "".to_owned();
|
||||
swap(s, &mut temp);
|
||||
Ok(String(temp))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue