Skip to content

Commit

Permalink
Fix optional module path
Browse files Browse the repository at this point in the history
  • Loading branch information
djkoloski committed Nov 4, 2023
1 parent 8124918 commit 409cc85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ macro_rules! impl_char {
// `c` is a valid `char`.
unsafe {
char::check_bytes(&c as *const u32 as *const char, context)
.with_context(|| context::ValueCheckContext {
.with_context(|| $crate::context::ValueCheckContext {
inner_name: "char",
outer_name: core::stringify!($name),
})
Expand Down Expand Up @@ -364,7 +364,7 @@ macro_rules! impl_nonzero {
// endianness.
unsafe {
<$prim>::check_bytes(value.cast(), context)
.with_context(|| context::ValueCheckContext {
.with_context(|| $crate::context::ValueCheckContext {
inner_name: core::stringify!($prim),
outer_name: core::stringify!($name),
})
Expand Down

0 comments on commit 409cc85

Please sign in to comment.