Commit 9062771
Rename ConnectionState::Errored to ConnectionState::Error
Per follow-up on stephentoub's review of PR #1164: prefer renaming the
variant to drop the `#[serde(rename = "error")]` attribute. The variant
is unused outside types.rs (the Client transitions Disconnected /
Connecting / Connected today; Error is reserved for future use), so
renaming has no consumer impact and produces a cleaner enum surface.
`ConnectionState::Error` does not collide with anything in scope:
`types.rs` does not import `crate::Error` (it uses fully-qualified
`crate::Error` at use sites) and `std::error::Error` is unimported. The
variant lives inside a typed enum, so no shadowing concern.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 3109b77 commit 9062771
1 file changed
Lines changed: 5 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
| 42 | + | |
44 | 43 | | |
45 | 44 | | |
46 | 45 | | |
| |||
2208 | 2207 | | |
2209 | 2208 | | |
2210 | 2209 | | |
2211 | | - | |
2212 | | - | |
| 2210 | + | |
| 2211 | + | |
2213 | 2212 | | |
2214 | 2213 | | |
2215 | | - | |
| 2214 | + | |
2216 | 2215 | | |
2217 | 2216 | | |
2218 | 2217 | | |
| |||
0 commit comments