From 2cf0dc7beaf569d71caa8c173a89cbf0f1e06131 Mon Sep 17 00:00:00 2001 From: "glm-5.3-flash" Date: Tue, 13 Oct 2026 11:32:16 +0000 Subject: [PATCH] docs + clippy: drop the retired C-08 stub reference; cloned_ref_to_slice_refs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - websocket/upgrade.rs: OpenableAlpn's spec doc advertised the removed `channel:pub_open_not_implemented` stub (upstream C-08, fixed in alkcall with the single-publish fixes) — rewritten to the current contract: Pub-typed marked specs are refused loudly at registration by `register_openable_with_establisher`; marked pub openables route through `ChannelCore::register_pub_openable`. Also dropped the stale 'alkcall 0.6.0' version pin - adapters/from_openapi.rs: clippy rust-1.99 `cloned_ref_to_slice_refs` — std::slice::from_ref instead of a single-element to_string slice Verified: cargo test (458 ok), clippy --all-targets -D warnings, fmt --check --- src/adapters/from_openapi.rs | 2 +- src/websocket/upgrade.rs | 11 +++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/adapters/from_openapi.rs b/src/adapters/from_openapi.rs index 125a4aa..1b07fcb 100644 --- a/src/adapters/from_openapi.rs +++ b/src/adapters/from_openapi.rs @@ -465,7 +465,7 @@ impl FromOpenAPI { `paths` for this path's `parameters` (and the path-item's shared \ list) has `name` and `in`, and that its $ref, if any, resolves. \ The placeholder would otherwise render as a literal `{{}}` path segment", - bounded_join(&[path_template.to_string()]), + bounded_join(std::slice::from_ref(&path_template)), bounded_join(&unbound) ), }); diff --git a/src/websocket/upgrade.rs b/src/websocket/upgrade.rs index 87ce669..3d02528 100644 --- a/src/websocket/upgrade.rs +++ b/src/websocket/upgrade.rs @@ -267,14 +267,17 @@ impl WsSessions { #[derive(Clone)] pub struct OpenableAlpn { /// The open-op spec (Query/Mutation/Sub with the `channel_open` - /// marker; a `Pub` open op resolves `channel:pub_open_not_implemented` - /// per the upstream C-08 stub until channel adoption lands). + /// marker). A `Pub`-typed marked spec is refused loudly at + /// registration by the upstream openable path (marked pub + /// openables register via alkcall's + /// `ChannelCore::register_pub_openable`, which this WS fork + /// wrapper does not thread yet). pub spec: OperationSpec, /// The data-plane protocol handler spawned on the allocated /// channel's `Connection` — `Fn(Value, Option, /// Connection, AuthContext) -> JoinHandle<()>`. With an - /// establisher attached, the plan (alkcall 0.6.0 / - /// ADR-049 amendment 2) is the establisher's `Establishment.plan`: + /// establisher attached, the plan (alkcall ADR-049 + /// amendment 2) is the establisher's `Establishment.plan`: /// the establisher and the handler agree on the concrete type /// (downcast in the ALPN crate); `None` when no establisher is /// registered or it returned `Establishment::default()`