Commit 6f6a753
committed
refactor(acp-nats): replace fallback byte literal with expect in error_response_bytes
Response::Error only contains integers, strings, and Option — serde_json
serialization is infallible for this type. Replace the dead-code
unwrap_or_else fallback string with an expect so the invariant is
explicit and the raw JSON byte literal is gone.
Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>1 parent ae597a3 commit 6f6a753
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | | - | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
0 commit comments