Skip to content

Commit

Permalink
fix: use unit type for unimplemented api errors (see #12)
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik1000 committed Nov 15, 2021
1 parent f9038ef commit 574279e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion client/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,14 @@ macro_rules! api_errors {
$field: $field_type
),*)?
}
),*
),*,
// "workaround" for #12
#[serde(other)]
#[error("not yet implemented ApiError")]
/// A fallback error to indicate that the error is not implemented (yet)
/// Because of a limitation from serde (see #12) you cannot access
/// `description` and `hint`
Other
}
};
}
Expand Down

0 comments on commit 574279e

Please sign in to comment.