Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Commit

Permalink
Use inventory with a re-export prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Jan 7, 2019
1 parent bcfecca commit 4e188d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion impl/src/define.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ pub fn expand(input: Flag) -> TokenStream {

quote! {
#vis static #ident: gflags::Flag<#ty> = #init;
gflags::submit! {
gflags::inventory::submit! {
#![crate = gflags]
gflags::registry::Flag {
doc: &[#(#doc),*],
short: #short,
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ pub use crate::state::Flag;
pub mod registry;

#[doc(hidden)]
pub use inventory::submit;
pub use inventory;

#[doc(hidden)]
pub use gflags_impl as r#impl;
Expand Down

0 comments on commit 4e188d3

Please sign in to comment.