Applied clippy fixes

This commit is contained in:
AB
2025-12-01 01:52:06 +02:00
parent 7c741c8e62
commit 67fe482a7c
3 changed files with 5 additions and 12 deletions

View File

@@ -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())
}