Drop str_char feature
This commit is contained in:
parent
d6bbca93f7
commit
8c6f72d732
@ -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)]
|
||||
|
||||
|
@ -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)),
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user