diff --git a/plugins/src/lib.rs b/plugins/src/lib.rs index 5193ea1be..0db187b3e 100644 --- a/plugins/src/lib.rs +++ b/plugins/src/lib.rs @@ -68,6 +68,7 @@ where rpcmethods: HashMap>, hooks: HashMap>, subscriptions: HashMap>, + #[allow(dead_code)] // unsure why rust thinks this field isn't used notifications: Vec, } @@ -682,7 +683,7 @@ where .send(json!({ "jsonrpc": "2.0", "method": method, - "params": {method: v}, + "params": v, })) .await .context("sending custom notification")?;