Skip to content

Commit e01808b

Browse files
davidzeng0meithecatte
authored andcommitted
Always use absolute paths in generated proc macro code
This makes the code more robust and fixes the `unused_qualifications` warning that happens when the user imports `use enumflags2::*;`
1 parent f08cd33 commit e01808b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

enumflags_derive/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,8 @@ fn check_flag(type_name: &Ident, flag: &Flag, bits: u8) -> Result<Option<TokenSt
239239
const _:
240240
<<[(); (
241241
(#type_name::#variant_name as u128).is_power_of_two()
242-
) as usize] as enumflags2::_internal::AssertionHelper>
243-
::Status as enumflags2::_internal::ExactlyOneBitSet>::X
242+
) as usize] as ::enumflags2::_internal::AssertionHelper>
243+
::Status as ::enumflags2::_internal::ExactlyOneBitSet>::X
244244
= ();
245245
)))
246246
}

0 commit comments

Comments
 (0)