Skip to content

Commit

Permalink
!fixup clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dmkozh committed Oct 9, 2023
1 parent e922c14 commit cc60fb4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 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,7 +336,7 @@ 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(|()| ())?))
}
}

Expand Down
8 changes: 4 additions & 4 deletions src/next/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,7 +336,7 @@ 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(|()| ())?))
}
}

Expand Down

0 comments on commit cc60fb4

Please sign in to comment.