From cc60fb4c48f02e63ddf58ce94d46d693f9c5bf4b Mon Sep 17 00:00:00 2001 From: Dmytro Kozhevin Date: Mon, 9 Oct 2023 18:32:03 -0400 Subject: [PATCH] !fixup clippy fixes --- src/curr/scval_conversions.rs | 8 ++++---- src/next/scval_conversions.rs | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/curr/scval_conversions.rs b/src/curr/scval_conversions.rs index e15102d7..db0d4066 100644 --- a/src/curr/scval_conversions.rs +++ b/src/curr/scval_conversions.rs @@ -96,7 +96,7 @@ impl TryFrom for i64 { } impl From<()> for ScVal { - fn from(_: ()) -> Self { + fn from((): ()) -> Self { ScVal::Void } } @@ -304,7 +304,7 @@ impl TryFrom for ScSymbol { impl TryFrom for ScVal { type Error = (); fn try_from(v: String) -> Result { - Ok(ScVal::Symbol(v.try_into().map_err(|_| ())?)) + Ok(ScVal::Symbol(v.try_into().map_err(|()| ())?)) } } @@ -312,7 +312,7 @@ impl TryFrom for ScVal { impl TryFrom<&String> for ScVal { type Error = (); fn try_from(v: &String) -> Result { - Ok(ScVal::Symbol(v.try_into().map_err(|_| ())?)) + Ok(ScVal::Symbol(v.try_into().map_err(|()| ())?)) } } @@ -336,7 +336,7 @@ impl TryFrom<&String> for ScSymbol { impl TryFrom<&str> for ScVal { type Error = (); fn try_from(v: &str) -> Result { - Ok(ScVal::Symbol(v.try_into().map_err(|_| ())?)) + Ok(ScVal::Symbol(v.try_into().map_err(|()| ())?)) } } diff --git a/src/next/scval_conversions.rs b/src/next/scval_conversions.rs index e15102d7..db0d4066 100644 --- a/src/next/scval_conversions.rs +++ b/src/next/scval_conversions.rs @@ -96,7 +96,7 @@ impl TryFrom for i64 { } impl From<()> for ScVal { - fn from(_: ()) -> Self { + fn from((): ()) -> Self { ScVal::Void } } @@ -304,7 +304,7 @@ impl TryFrom for ScSymbol { impl TryFrom for ScVal { type Error = (); fn try_from(v: String) -> Result { - Ok(ScVal::Symbol(v.try_into().map_err(|_| ())?)) + Ok(ScVal::Symbol(v.try_into().map_err(|()| ())?)) } } @@ -312,7 +312,7 @@ impl TryFrom for ScVal { impl TryFrom<&String> for ScVal { type Error = (); fn try_from(v: &String) -> Result { - Ok(ScVal::Symbol(v.try_into().map_err(|_| ())?)) + Ok(ScVal::Symbol(v.try_into().map_err(|()| ())?)) } } @@ -336,7 +336,7 @@ impl TryFrom<&String> for ScSymbol { impl TryFrom<&str> for ScVal { type Error = (); fn try_from(v: &str) -> Result { - Ok(ScVal::Symbol(v.try_into().map_err(|_| ())?)) + Ok(ScVal::Symbol(v.try_into().map_err(|()| ())?)) } }