Deprecate str::from_chars

Use `String::from_chars` instead

[breaking-change]
This commit is contained in:
Adolfo Ochagavía
2014-07-04 21:55:58 +02:00
parent 211f1caa29
commit 20a6894830
7 changed files with 23 additions and 11 deletions

View File

@@ -510,7 +510,7 @@ impl<'a> Parser<'a> {
};
self.chari = closer;
let greed = try!(self.get_next_greedy());
let inner = str::from_chars(
let inner = String::from_chars(
self.chars.as_slice().slice(start + 1, closer));
// Parse the min and max values from the regex.
@@ -944,7 +944,7 @@ impl<'a> Parser<'a> {
}
fn slice(&self, start: uint, end: uint) -> String {
str::from_chars(self.chars.as_slice().slice(start, end)).to_string()
String::from_chars(self.chars.as_slice().slice(start, end))
}
}