Skip to content

Plan, apply and roll back changes to a production ontology, with a blast radius report and a proof an auditor can re-check.

fix(clippy): allow field_reassign_with_default on non_exhaustive rmcp config

Fabio Rovai20a284376398
diff --git a/src/main.rs b/src/main.rs
index 8358599c..6fe3f340 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1095,6 +1095,7 @@ async fn async_main() -> anyhow::Result<()> {
// rmcp >=1.4 marks StreamableHttpServerConfig #[non_exhaustive], so it
// can no longer be built with a struct literal from this crate. Start
// from Default and set the public fields we care about.
+ #[allow(clippy::field_reassign_with_default)]
let mut http_config = StreamableHttpServerConfig::default();
http_config.stateful_mode = cfg.http.stateful_mode;
http_config.cancellation_token = ct.clone();