Skip to content

Commit

Permalink
Merge pull request #9 from kaleidawave/module-gen-fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
azriel91 authored Dec 22, 2021
2 parents 63fc9d0 + 74f873f commit ba32d58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ fn enum_variant_type_impl(ast: DeriveInput) -> proc_macro2::TokenStream {
if let Some(module_to_wrap_in) = wrap_in_module {
quote! {
#vis mod #module_to_wrap_in {
use super::#enum_name;
use super::*;

#struct_declarations
}
Expand Down Expand Up @@ -523,7 +523,7 @@ mod tests {
let actual_tokens = enum_variant_type_impl(ast);
let expected_tokens = quote! {
pub mod example {
use super::MyEnum;
use super::*;

pub struct A;

Expand Down

0 comments on commit ba32d58

Please sign in to comment.