From 8529f2a26c5bc9dcef70abe131e38796bc1c66b9 Mon Sep 17 00:00:00 2001 From: Sean Klein Date: Thu, 24 Oct 2024 17:32:46 -0700 Subject: [PATCH] eliza's feedback --- src/async_traits.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/async_traits.rs b/src/async_traits.rs index 0719356..3c96f32 100644 --- a/src/async_traits.rs +++ b/src/async_traits.rs @@ -49,6 +49,7 @@ fn retryable_error(err: &DieselError) -> bool { // // This aims to help avoid leaving open transactions alive // if an asynchronous transaction is cancelled. +#[must_use] struct ConnectionKiller<'a, Conn> where Conn: DieselConnection, @@ -124,7 +125,7 @@ where #[doc(hidden)] fn as_async_conn(&self) -> &Connection; - // Identifies if the conneciton has been broken + // Identifies if the connection has been broken // by an invalid transaction. This should prevent // future usage. #[doc(hidden)]