fix: resolve clippy warnings across workspace (#1195)
* fix: resolve clippy warnings across workspace * ci: also run clippy on rmcp with all features except local --all-features enables the local feature, which cfg-gates out tower.rs and most of the test suite, so the existing clippy step never actually lints them.
This commit is contained in:
parent
f9a68bfa5c
commit
6fa40536de
1 changed files with 277 additions and 289 deletions
|
|
@ -1,5 +1,8 @@
|
|||
#![cfg(all(feature = "server", feature = "client", not(feature = "local")))]
|
||||
#![allow(deprecated)]
|
||||
#![expect(
|
||||
deprecated,
|
||||
reason = "This test verifies request association for the deprecated sampling API"
|
||||
)]
|
||||
|
||||
use std::sync::{Arc, Mutex};
|
||||
|
||||
|
|
@ -18,9 +21,11 @@ use tokio::{
|
|||
sync::oneshot,
|
||||
};
|
||||
|
||||
type RequestResultSender = oneshot::Sender<Result<(), ServiceError>>;
|
||||
|
||||
#[derive(Clone)]
|
||||
struct SamplingServer {
|
||||
outside: Arc<Mutex<Option<oneshot::Sender<Result<(), ServiceError>>>>>,
|
||||
outside: Arc<Mutex<Option<RequestResultSender>>>,
|
||||
}
|
||||
|
||||
impl ServerHandler for SamplingServer {
|
||||
|
|
|
|||
Loading…
Reference in a new issue