mirror of
https://gitlab.com/msrd0/gotham-restful.git
synced 2025-04-20 23:07:01 +00:00
add resource error integration test
This commit is contained in:
parent
bb945e2cc6
commit
ed1bbbd1fb
2 changed files with 37 additions and 1 deletions
|
@ -231,7 +231,7 @@ pub fn expand_resource_error(input: DeriveInput) -> Result<TokenStream> {
|
|||
let variants = inum.variants.into_iter().map(process_variant).collect_to_result()?;
|
||||
|
||||
let display_impl = if variants.iter().any(|v| v.display.is_none()) {
|
||||
None
|
||||
None // TODO issue warning if display is present on some but not all
|
||||
} else {
|
||||
let were = generics.params.iter().filter_map(|param| match param {
|
||||
GenericParam::Type(ty) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue