Skip to content

Commit

Permalink
Cleanup 'try' warning (see rust-lang/rust#61000)
Browse files Browse the repository at this point in the history
  • Loading branch information
jayaddison committed May 11, 2020
1 parent a33c3a0 commit 27e8681
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser.rs
Expand Up @@ -176,7 +176,7 @@ pub fn parse(params: &str) -> ParseResult<Value> {
};
let pairs = parse_pairs(&decoded_params);
for &(key, value) in pairs.iter() {
let parse_key_res = try!(parse_key(key));
let parse_key_res = parse_key(key)?;
let key_chain = &parse_key_res[0..];
let decoded_value = match decode_component(value.unwrap_or("")) {
Ok(val) => val,
Expand Down

0 comments on commit 27e8681

Please sign in to comment.