Skip to content

Commit

Permalink
Merge pull request #205 from Manishearth/fq-result
Browse files Browse the repository at this point in the history
Use fully qualified path for Result when generated by macro
  • Loading branch information
Manishearth authored Nov 5, 2024
2 parents 5b86c44 + de2becf commit 6cbaf48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ fn gen_size_hint_method(input: &DeriveInput) -> Result<TokenStream> {
}

#[inline]
fn try_size_hint(depth: usize) -> Result<(usize, ::core::option::Option<usize>), arbitrary::MaxRecursionReached> {
fn try_size_hint(depth: usize) -> ::core::result::Result<(usize, ::core::option::Option<usize>), arbitrary::MaxRecursionReached> {
arbitrary::size_hint::try_recursion_guard(depth, |depth| #hint)
}
}
Expand All @@ -422,7 +422,7 @@ fn gen_size_hint_method(input: &DeriveInput) -> Result<TokenStream> {
Self::try_size_hint(depth).unwrap_or_default()
}
#[inline]
fn try_size_hint(depth: usize) -> Result<(usize, ::core::option::Option<usize>), arbitrary::MaxRecursionReached> {
fn try_size_hint(depth: usize) -> ::core::result::Result<(usize, ::core::option::Option<usize>), arbitrary::MaxRecursionReached> {
Ok(arbitrary::size_hint::and(
<u32 as arbitrary::Arbitrary>::try_size_hint(depth)?,
arbitrary::size_hint::try_recursion_guard(depth, |depth| {
Expand Down

0 comments on commit 6cbaf48

Please sign in to comment.