removed warnings

This commit is contained in:
Ty Overby 2015-03-23 10:36:29 -07:00
parent ff484bd667
commit 575002877b
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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)
});