diff --git a/googletest/src/lib.rs b/googletest/src/lib.rs index 81e9af31..2bf63eff 100644 --- a/googletest/src/lib.rs +++ b/googletest/src/lib.rs @@ -91,7 +91,7 @@ use internal::test_outcome::{TestAssertionFailure, TestOutcome}; /// of the (fatal) assertion failure which generated this result. Non-fatal /// assertion failures, which log the failure and report the test as having /// failed but allow it to continue running, are not encoded in this type. -pub type Result = std::result::Result; +pub type Result = std::result::Result; /// Returns a [`Result`] corresponding to the outcome of the currently running /// test. diff --git a/googletest_macro/src/lib.rs b/googletest_macro/src/lib.rs index 17e916ab..dab65d44 100644 --- a/googletest_macro/src/lib.rs +++ b/googletest_macro/src/lib.rs @@ -123,7 +123,7 @@ pub fn gtest( }; let (output_type, result) = match sig.output { - ReturnType::Default => (None, quote! {googletest::Result::Ok(())}), + ReturnType::Default => (None, quote! {googletest::Result::<()>::Ok(())}), ReturnType::Type(_, ref ty) => (Some(quote! {#ty}), quote! {result}), };