chore: resolve clippy warnings for pre-push audit
This commit is contained in:
1 parent
bd20482cea
commit
03f8786d24
7 files changed
+27
-31
No files matched your search
+11
-14
@@ -295,20 +295,17 @@ mod tests {
|
||||
.iter()
|
||||
.filter_map(|act_val| {
|
||||
if act_val["category"] == "TASK_EVENT" {
|
||||
if let Some(details_str) = act_val["details"].as_str() {
|
||||
if let Ok(event_val) =
|
||||
serde_json::from_str::<serde_json::Value>(details_str)
|
||||
{
|
||||
return Some(
|
||||
serde_json::json!({
|
||||
"jsonrpc": "2.0",
|
||||
"method": "notifications/task/completed",
|
||||
"params": event_val
|
||||
})
|
||||
.to_string(),
|
||||
);
|
||||
}
|
||||
}
|
||||
let details_str = act_val["details"].as_str()?;
|
||||
let event_val =
|
||||
serde_json::from_str::<serde_json::Value>(details_str).ok()?;
|
||||
return Some(
|
||||
serde_json::json!({
|
||||
"jsonrpc": "2.0",
|
||||
"method": "notifications/task/completed",
|
||||
"params": event_val
|
||||
})
|
||||
.to_string(),
|
||||
);
|
||||
}
|
||||
None
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user