Skip to content

Commit 29e685d

Browse files
author
ump45nose
committed
fix(model): alias JsonRpcMessageVisitor PhantomData for clippy
Factor the PhantomData<fn() -> (Req, Resp, Noti)> marker into a type alias so clippy::type_complexity no longer fails CI under -D warnings.
1 parent 29bf9ed commit 29e685d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎crates/rmcp/src/model.rs‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -862,8 +862,11 @@ where
862862
}
863863
}
864864

865+
type JsonRpcMessageVisitorMarker<Req, Resp, Noti> =
866+
std::marker::PhantomData<fn() -> (Req, Resp, Noti)>;
867+
865868
struct JsonRpcMessageVisitor<Req, Resp, Noti> {
866-
_marker: std::marker::PhantomData<fn() -> (Req, Resp, Noti)>,
869+
_marker: JsonRpcMessageVisitorMarker<Req, Resp, Noti>,
867870
}
868871

869872
impl<'de, Req, Resp, Noti> serde::de::Visitor<'de> for JsonRpcMessageVisitor<Req, Resp, Noti>

0 commit comments

Comments
 (0)