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")]
|
#![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)]
|
||||||
|
|
||||||
|
@ -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)),
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user