Replace full slice notation with index calls
This commit is contained in:
parent
918255ef8c
commit
f7ff37e4c5
225 changed files with 2166 additions and 2139 deletions
|
@ -199,7 +199,7 @@ impl Encodable for Ident {
|
|||
#[cfg(stage0)]
|
||||
impl<D: Decoder<E>, E> Decodable<D, E> for Ident {
|
||||
fn decode(d: &mut D) -> Result<Ident, E> {
|
||||
Ok(str_to_ident(try!(d.read_str())[]))
|
||||
Ok(str_to_ident(try!(d.read_str()).index(&FullRange)))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue