Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Merz committed Feb 14, 2018
1 parent a15a916 commit 2eec509
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/funcs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -393,9 +393,7 @@ pub fn urlquery(args: &[Value]) -> Result<Value, String> {
}
let val = &args[0];
match *val {
Value::String(ref s) => Ok(val!(
utf8_percent_encode(s, DEFAULT_ENCODE_SET).to_string()
)),
Value::String(ref s) => Ok(val!(utf8_percent_encode(s, DEFAULT_ENCODE_SET).to_string())),
_ => Err(String::from("Arguments need to be of type String")),
}
}
Expand Down

0 comments on commit 2eec509

Please sign in to comment.