Skip to content

Commit

Permalink
Merge pull request #13 from jayaddison/cleanup/try-warning
Browse files Browse the repository at this point in the history
refactor(parser): remove lint warning related to 'try' usage
  • Loading branch information
s-panferov committed Jun 6, 2020
2 parents 8a6266e + 25dfa3d commit d7f305c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Cargo.toml
Expand Up @@ -7,6 +7,7 @@ description = "Rust query string parser with nesting support, forked to update S
repository = "https://github.com/rustless/queryst"
keywords = ["json", "web", "url", "parser"]
license = "MIT"
rust = "1.13"

[features]
default = ["regex1"]
Expand Down
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 d7f305c

Please sign in to comment.