Convert all uses of unsafe_from_bytes to unsafe_from_bytes_ivec
This commit is contained in:
parent
49b80f9bf7
commit
a9ce342fa3
11 changed files with 27 additions and 31 deletions
|
|
@ -311,8 +311,8 @@ fn sanitize(s: &str) -> str {
|
|||
if c != 10u8 && c != '}' as u8 && c != ')' as u8 &&
|
||||
c != ' ' as u8 && c != '\t' as u8 && c != ';' as u8
|
||||
{
|
||||
let v = [c];
|
||||
result += str::unsafe_from_bytes(v);
|
||||
let v = ~[c];
|
||||
result += str::unsafe_from_bytes_ivec(v);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue