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")] #![doc(html_root_url="https://sfackler.github.io/rust-postgres/doc")]
#![feature(io, str_char)] #![feature(io)]
#![cfg_attr(feature = "unix_socket", feature(convert))] #![cfg_attr(feature = "unix_socket", feature(convert))]
#![warn(missing_docs)] #![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))) raw => Some(try!(decode_component(raw)))
}; };
match before_fragment.slice_shift_char() { match before_fragment.chars().next() {
Some(('?', rest)) => Ok((try!(query_from_str(rest)), fragment)), Some('?') => Ok((try!(query_from_str(&before_fragment[1..])), fragment)),
None => Ok((vec!(), fragment)), None => Ok((vec!(), fragment)),
_ => Err(format!("Query didn't start with '?': '{}..'", before_fragment)), _ => Err(format!("Query didn't start with '?': '{}..'", before_fragment)),
} }