use slicing sugar
This commit is contained in:
parent
6e2bfe4ae8
commit
517f1cc63c
198 changed files with 2383 additions and 2405 deletions
|
@ -203,7 +203,7 @@ impl Encodable for Ident {
|
|||
|
||||
impl Decodable for Ident {
|
||||
fn decode<D: Decoder>(d: &mut D) -> Result<Ident, D::Error> {
|
||||
Ok(str_to_ident(try!(d.read_str()).index(&FullRange)))
|
||||
Ok(str_to_ident(&try!(d.read_str())[]))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue