mirror of
https://github.com/house-of-vanity/v2-uri-parser.git
synced 2025-12-17 23:37:52 +00:00
Applied clippy fixes
This commit is contained in:
@@ -24,8 +24,5 @@ pub fn parse_raw_json(input: &str) -> Option<serde_json::Value> {
|
||||
}
|
||||
|
||||
pub fn get_parameter_value(query: &Vec<(&str, &str)>, param: &str) -> Option<String> {
|
||||
query
|
||||
.iter()
|
||||
.find(|q| q.0 == param)
|
||||
.map(|q| q.1.to_string())
|
||||
query.iter().find(|q| q.0 == param).map(|q| q.1.to_string())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user