Skip to content

Commit

Permalink
Bump latest to draft-13
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoyla committed Dec 2, 2024
1 parent e27420f commit 76c6af1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/daphne/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ pub enum DapVersion {
#[default]
Draft09,

#[serde(rename = "v10")]
#[serde(rename = "v13")]
Latest,
}

Expand All @@ -110,7 +110,7 @@ impl FromStr for DapVersion {
fn from_str(version: &str) -> Result<Self, Self::Err> {
match version {
"v09" => Ok(DapVersion::Draft09),
"v10" => Ok(DapVersion::Latest),
"v13" => Ok(DapVersion::Latest),
_ => Err(DapAbort::version_unknown()),
}
}
Expand All @@ -120,7 +120,7 @@ impl AsRef<str> for DapVersion {
fn as_ref(&self) -> &str {
match self {
DapVersion::Draft09 => "v09",
DapVersion::Latest => "v10",
DapVersion::Latest => "v13",
}
}
}
Expand Down

0 comments on commit 76c6af1

Please sign in to comment.