remove unneeded macro param in error::impl_error_from

This commit is contained in:
Jörn-Michael Miehe 2025-07-01 18:51:49 +00:00
parent 0d68d139d5
commit d55684096f

View file

@ -64,8 +64,8 @@ pub enum Error {
// a helper to generate all the `From<T> for Error` impls
macro_rules! impl_error_from {
// $typ: the source type; $var: the enumvariant 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)]