From 575002877b885136e41244aba50591cf79ec74ad Mon Sep 17 00:00:00 2001 From: Ty Overby Date: Mon, 23 Mar 2015 10:36:29 -0700 Subject: [PATCH] removed warnings --- src/lib.rs | 2 +- src/reader.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index b50b93e..fe7b676 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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; diff --git a/src/reader.rs b/src/reader.rs index e6ce74c..5490137 100644 --- a/src/reader.rs +++ b/src/reader.rs @@ -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) });