Skip to content

Commit

Permalink
Bump xdr (#306)
Browse files Browse the repository at this point in the history
* Bump xdr/curr

* !fixup Fix XDR hashes

* !fixup clippy fixes

* !fixup more clippy fixes
  • Loading branch information
dmkozh authored Oct 10, 2023
1 parent c9d24eb commit 18b1ef7
Show file tree
Hide file tree
Showing 8 changed files with 114 additions and 288 deletions.
187 changes: 50 additions & 137 deletions src/curr/generated.rs

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions src/curr/scval_conversions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ impl TryFrom<ScVal> for i64 {
}

impl From<()> for ScVal {
fn from(_: ()) -> Self {
fn from((): ()) -> Self {
ScVal::Void
}
}
Expand Down Expand Up @@ -304,15 +304,15 @@ impl TryFrom<ScVal> for ScSymbol {
impl TryFrom<String> for ScVal {
type Error = ();
fn try_from(v: String) -> Result<Self, ()> {
Ok(ScVal::Symbol(v.try_into().map_err(|_| ())?))
Ok(ScVal::Symbol(v.try_into().map_err(|()| ())?))
}
}

#[cfg(feature = "alloc")]
impl TryFrom<&String> for ScVal {
type Error = ();
fn try_from(v: &String) -> Result<Self, ()> {
Ok(ScVal::Symbol(v.try_into().map_err(|_| ())?))
Ok(ScVal::Symbol(v.try_into().map_err(|()| ())?))
}
}

Expand All @@ -336,15 +336,15 @@ impl TryFrom<&String> for ScSymbol {
impl TryFrom<&str> for ScVal {
type Error = ();
fn try_from(v: &str) -> Result<Self, ()> {
Ok(ScVal::Symbol(v.try_into().map_err(|_| ())?))
Ok(ScVal::Symbol(v.try_into().map_err(|()| ())?))
}
}

#[cfg(not(feature = "alloc"))]
impl TryFrom<&'static str> for ScVal {
type Error = ();
fn try_from(v: &'static str) -> Result<Self, ()> {
Ok(ScVal::Symbol(v.try_into().map_err(|_| ())?))
Ok(ScVal::Symbol(v.try_into().map_err(|()| ())?))
}
}

Expand Down
Loading

0 comments on commit 18b1ef7

Please sign in to comment.