diff --git a/derive/src/lib.rs b/derive/src/lib.rs index 9e64de0..81c0274 100644 --- a/derive/src/lib.rs +++ b/derive/src/lib.rs @@ -397,7 +397,7 @@ fn gen_size_hint_method(input: &DeriveInput) -> Result { } #[inline] - fn try_size_hint(depth: usize) -> Result<(usize, ::core::option::Option), arbitrary::MaxRecursionReached> { + fn try_size_hint(depth: usize) -> ::core::result::Result<(usize, ::core::option::Option), arbitrary::MaxRecursionReached> { arbitrary::size_hint::try_recursion_guard(depth, |depth| #hint) } } @@ -422,7 +422,7 @@ fn gen_size_hint_method(input: &DeriveInput) -> Result { Self::try_size_hint(depth).unwrap_or_default() } #[inline] - fn try_size_hint(depth: usize) -> Result<(usize, ::core::option::Option), arbitrary::MaxRecursionReached> { + fn try_size_hint(depth: usize) -> ::core::result::Result<(usize, ::core::option::Option), arbitrary::MaxRecursionReached> { Ok(arbitrary::size_hint::and( ::try_size_hint(depth)?, arbitrary::size_hint::try_recursion_guard(depth, |depth| {