Skip to content

Commit

Permalink
Merge pull request #4 from aldanor/feature/fix-types
Browse files Browse the repository at this point in the history
Fix various scoping issues
  • Loading branch information
aldanor authored Oct 21, 2020
2 parents 0c801bd + 0f4c192 commit d8f28e5
Show file tree
Hide file tree
Showing 3 changed files with 511 additions and 507 deletions.
2 changes: 1 addition & 1 deletion impl/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,6 @@ pub fn fixed(input: TokenStream) -> TokenStream {
Err(err) => abort!(lit.span(), "invalid fixed value: {}", err),
};
let type_ident = ty.type_ident();
let code = quote! { ::fixed::types::#type_ident::from_bits(#bits) };
let code = quote! { ::fixed_macro::__fixed::types::#type_ident::from_bits(#bits) };
code.into()
}
4 changes: 4 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,7 @@ pub use fixed_macro_impl::fixed;
pub mod types {
pub use fixed_macro_types::*;
}

// Not public API. Used by generated code.
#[doc(hidden)]
pub use fixed as __fixed;
Loading

0 comments on commit d8f28e5

Please sign in to comment.