fix: gate client handler bounds for local (#1068)
This commit is contained in:
parent
fff05d40fd
commit
e5403cf956
1 changed files with 210 additions and 176 deletions
16
crates/rmcp/tests/test_local_client_handler.rs
Normal file
16
crates/rmcp/tests/test_local_client_handler.rs
Normal 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>();
|
||||
}
|
||||
Loading…
Reference in a new issue