From d55684096f415f53cb0122bb6da24a25831b59d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= <40151420+ldericher@users.noreply.github.com> Date: Tue, 1 Jul 2025 18:51:49 +0000 Subject: [PATCH] remove unneeded macro param in `error::impl_error_from` --- src/error.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/error.rs b/src/error.rs index 0f1d104..6d9ecc9 100644 --- a/src/error.rs +++ b/src/error.rs @@ -64,8 +64,8 @@ pub enum Error { // a helper to generate all the `From for Error` impls macro_rules! impl_error_from { - // $typ: the source type; $var: the enum‐variant name - ( $( $typ:path => $var:ident ),* $(,)? ) => { + // $typ: the source type + ( $( $typ:path ),* $(,)? ) => { $( // // implement for values // impl From<$typ> for Error { @@ -85,10 +85,10 @@ macro_rules! impl_error_from { } impl_error_from! { - sharry::Uri => Uri, - sharry::AliasID => AliasID, - sharry::ShareID => ShareID, - sharry::FileID => FileID, + sharry::Uri, + sharry::AliasID, + sharry::ShareID, + sharry::FileID, } #[allow(clippy::needless_pass_by_value)]