Skip to content

Commit 1e7c51f

Browse files
committed
fix(gateway): suppress dead_code + manual_non_exhaustive clippy lints
Autonomous decisions: - Added #[allow(dead_code)] to feature_set_repo field (retained for constructor API stability; removing the parameter requires updating 7+ call sites across tests and service_container.rs — deferred cleanup) - Added #[allow(clippy::manual_non_exhaustive)] to ResolutionSource enum (SpaceDefault kept intentionally for serde compat, not an oversight) Signed-off-by: crimsonsunset <jsangio1@gmail.com>
1 parent 7345ff2 commit 1e7c51f

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

crates/mcpmux-gateway/src/services/feature_set_resolver.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@ const DEFAULT_PENDING_ROOTS_GRACE: Duration = Duration::from_secs(5);
114114
/// Why the resolver picked the FS(es) it picked (or didn't pick any).
115115
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize)]
116116
#[serde(rename_all = "snake_case")]
117+
// SpaceDefault is retained for serde compat; it is no longer produced but may appear
118+
// in deserialized data from older gateway versions. The unused-variant pattern is
119+
// intentional, not an oversight.
120+
#[allow(clippy::manual_non_exhaustive)]
117121
pub enum ResolutionSource {
118122
/// A [`WorkspaceBinding`](mcpmux_core::WorkspaceBinding) matched one of
119123
/// the session's reported MCP roots.
@@ -177,8 +181,9 @@ pub struct FeatureSetResolverService {
177181
/// Reads `client_grants` for the rootless Tier-2 fallback. Stored as a
178182
/// concrete repo (storage owns this type and there's only ever one).
179183
client_repo: Arc<InboundClientRepository>,
180-
/// Looks up each Space's Starter FeatureSet for the default fallback
181-
/// (Tier 1b / Tier 1c-after-grace / Tier 3).
184+
/// Retained in the constructor signature for API stability; was used by the
185+
/// now-removed `default_fallback()` helper. Remove once all call sites are updated.
186+
#[allow(dead_code)]
182187
feature_set_repo: Arc<dyn FeatureSetRepository>,
183188
/// Scopes an unmapped reported root to a Space by base directory — an
184189
/// unmapped folder under a Space's base dir falls back to that Space's

0 commit comments

Comments
 (0)