Skip to content

Commit f40be6a

Browse files
authored
Merge pull request #203 from kubewarden/renovate/all-updates
build(deps): update rust-lang/crates-io-auth-action action to v1.0.3
2 parents 64080c1 + 80c457b commit f40be6a

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
run: |
7373
rustup toolchain install stable
7474
rustup override set stable
75-
- uses: rust-lang/crates-io-auth-action@041cce5b4b821e6b0ebc9c9c38b58cac4e34dcc2 # v1.0.2
75+
- uses: rust-lang/crates-io-auth-action@b7e9a28eded4986ec6b1fa40eeee8f8f165559ec # v1.0.3
7676
id: auth
7777
- name: publish crates
7878
run: cargo publish

src/metadata.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,18 @@ use std::{convert::TryFrom, fmt};
77
///
88
/// Policies built with this SDK provide the right value via the `protocol_version_guest`
99
/// function.
10-
#[derive(Deserialize, Serialize, Debug, Clone, FromPrimitive, ToPrimitive, PartialEq, Eq)]
10+
#[derive(
11+
Deserialize, Serialize, Debug, Clone, FromPrimitive, ToPrimitive, PartialEq, Eq, Default,
12+
)]
1113
pub enum ProtocolVersion {
1214
/// This is an invalid version
1315
#[serde(rename = "Unknown")]
1416
Unknown = 0,
1517
#[serde(rename = "v1")]
18+
#[default]
1619
V1,
1720
}
1821

19-
impl Default for ProtocolVersion {
20-
fn default() -> Self {
21-
Self::V1
22-
}
23-
}
24-
2522
impl TryFrom<Vec<u8>> for ProtocolVersion {
2623
type Error = anyhow::Error;
2724

0 commit comments

Comments
 (0)