Compare commits

..

No commits in common. "91085a9eecdf2434c4b0c3cd5eaa1811906ba6c3" and "de208a20d5ba5c4b341b2d92d62c0c99c905ede4" have entirely different histories.

View file

@ -64,8 +64,8 @@ pub enum Error {
// a helper to generate all the `From<T> for Error` impls // a helper to generate all the `From<T> for Error` impls
macro_rules! impl_error_from { macro_rules! impl_error_from {
// $typ: the source type // $typ: the source type; $var: the enumvariant name
( $( $typ:path ),* $(,)? ) => { ( $( $typ:path => $var:ident ),* $(,)? ) => {
$( $(
// // implement for values // // implement for values
// impl From<$typ> for Error { // impl From<$typ> for Error {
@ -85,10 +85,10 @@ macro_rules! impl_error_from {
} }
impl_error_from! { impl_error_from! {
sharry::Uri, sharry::Uri => Uri,
sharry::AliasID, sharry::AliasID => AliasID,
sharry::ShareID, sharry::ShareID => ShareID,
sharry::FileID, sharry::FileID => FileID,
} }
#[allow(clippy::needless_pass_by_value)] #[allow(clippy::needless_pass_by_value)]