Drop str_char feature

This commit is contained in:
Steven Fackler 2015-03-30 22:37:14 -07:00
parent d6bbca93f7
commit 8c6f72d732
2 changed files with 3 additions and 3 deletions

View File

@ -43,7 +43,7 @@
//! }
//! ```
#![doc(html_root_url="https://sfackler.github.io/rust-postgres/doc")]
#![feature(io, str_char)]
#![feature(io)]
#![cfg_attr(feature = "unix_socket", feature(convert))]
#![warn(missing_docs)]

View File

@ -406,8 +406,8 @@ fn get_query_fragment(rawurl: &str) -> DecodeResult<(Query, Option<String>)> {
raw => Some(try!(decode_component(raw)))
};
match before_fragment.slice_shift_char() {
Some(('?', rest)) => Ok((try!(query_from_str(rest)), fragment)),
match before_fragment.chars().next() {
Some('?') => Ok((try!(query_from_str(&before_fragment[1..])), fragment)),
None => Ok((vec!(), fragment)),
_ => Err(format!("Query didn't start with '?': '{}..'", before_fragment)),
}