From e10f1bf5d5d3b09547482871cd67a67bf6a0ec1c Mon Sep 17 00:00:00 2001 From: Ryan Leckey Date: Wed, 20 Jan 2021 19:43:19 -0800 Subject: [PATCH] fix(mock): sqlx_core::Async is only available if feature = "async" --- sqlx-core/src/mock.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/sqlx-core/src/mock.rs b/sqlx-core/src/mock.rs index 84937208..9e5f19cd 100644 --- a/sqlx-core/src/mock.rs +++ b/sqlx-core/src/mock.rs @@ -98,6 +98,7 @@ impl MockStream { } } +#[cfg(feature = "async")] impl crate::Async for Mock {} impl<'s> IoStream<'s, Mock> for MockStream {