From 4fbb1a550987ab34129bef6733eda32630963de1 Mon Sep 17 00:00:00 2001 From: Konippi Date: Thu, 5 Feb 2026 13:18:14 +0900 Subject: [PATCH] chore: avoid redundant JSON validation in extension notification decoding --- src/rpc.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rpc.rs b/src/rpc.rs index a4f56c5c..973af7f2 100644 --- a/src/rpc.rs +++ b/src/rpc.rs @@ -238,7 +238,7 @@ impl Side for ClientSide { if let Some(custom_method) = method.strip_prefix('_') { Ok(AgentNotification::ExtNotification(ExtNotification { method: custom_method.into(), - params: RawValue::from_string(params.get().to_string())?.into(), + params: params.to_owned().into(), })) } else { Err(Error::method_not_found()) @@ -330,7 +330,7 @@ impl Side for AgentSide { if let Some(custom_method) = method.strip_prefix('_') { Ok(ClientNotification::ExtNotification(ExtNotification { method: custom_method.into(), - params: RawValue::from_string(params.get().to_string())?.into(), + params: params.to_owned().into(), })) } else { Err(Error::method_not_found())