Commit 10c947e
committed
fix(transport): satisfy nightly rustfmt and build test ServerInfo via ::new (#857)
- Wrap the synthetic-cancellation construction to match `cargo +nightly
fmt`.
- `ServerInfo` is `#[non_exhaustive]`; construct it in the test with
`ServerInfo::new(..)` instead of a struct literal.
Verified locally: `cargo +nightly fmt --all -- --check` clean and the
regression test passes (disconnect cancels the in-flight request).1 parent b6c93fa commit 10c947e
2 files changed
Lines changed: 4 additions & 6 deletions
File tree
- crates/rmcp
- src/transport/streamable_http_server/session
- tests
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
245 | | - | |
246 | | - | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
247 | 248 | | |
248 | 249 | | |
249 | 250 | | |
| |||
Lines changed: 1 addition & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
| 32 | + | |
36 | 33 | | |
37 | 34 | | |
38 | 35 | | |
| |||
0 commit comments