removed warnings
This commit is contained in:
parent
ff484bd667
commit
575002877b
|
|
@ -3,7 +3,7 @@
|
|||
#![crate_type = "dylib"]
|
||||
|
||||
#![doc(html_logo_url = "./icon.png")]
|
||||
#![feature(core, io, unicode, collections)]
|
||||
#![feature(core, io, unicode)]
|
||||
|
||||
extern crate "rustc-serialize" as rustc_serialize;
|
||||
extern crate byteorder;
|
||||
|
|
|
|||
|
|
@ -228,7 +228,7 @@ impl<'a, R: Read> Decoder for DecoderReader<'a, R> {
|
|||
}
|
||||
|
||||
let res = try!(match str::from_utf8(&buf[..width]).ok() {
|
||||
Some(s) => Ok(s.char_at(0)),
|
||||
Some(s) => Ok(s.chars().next().unwrap()),
|
||||
None => Err(error)
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue