Commit 2520db2
committed
fix(test): build rmcp AuthorizationMetadata via deserialize, not struct literal
The resource-param test came in from main's side of the merge, where rmcp
v0.17 allowed a struct literal. On this branch (rmcp v1.5) AuthorizationMetadata
is #[non_exhaustive], so it can't be constructed with a struct expression from
outside the crate. Deserialize from JSON instead — also avoids clippy's
field_reassign_with_default lint that the mutate-from-default pattern would trip.
Signed-off-by: Mohammod Al Amin Ashik <maa.ashik00@gmail.com>1 parent db54d13 commit 2520db2
1 file changed
Lines changed: 10 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1673 | 1673 | | |
1674 | 1674 | | |
1675 | 1675 | | |
1676 | | - | |
1677 | | - | |
1678 | | - | |
1679 | | - | |
1680 | | - | |
1681 | | - | |
1682 | | - | |
| 1676 | + | |
| 1677 | + | |
| 1678 | + | |
| 1679 | + | |
| 1680 | + | |
| 1681 | + | |
| 1682 | + | |
| 1683 | + | |
| 1684 | + | |
| 1685 | + | |
1683 | 1686 | | |
1684 | 1687 | | |
1685 | 1688 | | |
| |||
0 commit comments