Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump xdr #306

Merged
merged 4 commits into from
Oct 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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