Skip to content

Commit f8e3373

Browse files
authored
Merge pull request #2426 from CosmWasm/GovMsg-non_exhaustive
Make `GovMsg` `#[non_exhaustive]` for consistency
2 parents 19a22c2 + 92b2bdb commit f8e3373

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ and this project adheres to
6060
- cosmwasm-std: Remove abort feature. ([#2141])
6161
- cosmwasm-std: Replace dependency `serde-json-wasm` with `serde_json`.
6262
([#2195])
63+
- cosmwasm-std: Make `GovMsg` `#[non_exhaustive]` for consistency. ([#2347])
6364

6465
## Fixed
6566

@@ -80,6 +81,7 @@ and this project adheres to
8081
[#2337]: https://github.com/CosmWasm/cosmwasm/issues/2337
8182
[#2340]: https://github.com/CosmWasm/cosmwasm/pull/2340
8283
[#2344]: https://github.com/CosmWasm/cosmwasm/pull/2344
84+
[#2347]: https://github.com/CosmWasm/cosmwasm/issues/2347
8385
[#2367]: https://github.com/CosmWasm/cosmwasm/issues/2367
8486
[#2374]: https://github.com/CosmWasm/cosmwasm/issues/2374
8587
[#2378]: https://github.com/CosmWasm/cosmwasm/issues/2378

packages/std/src/results/cosmos_msg.rs

+1
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,7 @@ pub enum WasmMsg {
373373
/// }
374374
/// ```
375375
#[cfg(feature = "stargate")]
376+
#[non_exhaustive]
376377
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)]
377378
#[serde(rename_all = "snake_case")]
378379
pub enum GovMsg {

0 commit comments

Comments
 (0)