fix: gate client handler bounds for local (#1068)

This commit is contained in:
Dale Seo 2026-07-28 11:02:32 -04:00 • committed by GitHub
commit e5403cf956
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,16 @@
use std::rc::Rc;
use rmcp::ClientHandler;
struct LocalClientHandler {
_state: Rc<()>,
}
impl ClientHandler for LocalClientHandler {}
#[test]
fn client_handler_accepts_non_send_sync_state_with_local_feature() {
fn assert_client_handler<T: ClientHandler>() {}
assert_client_handler::<LocalClientHandler>();
}