From f23d91dc387ab509b81e7780f0997df360991cb7 Mon Sep 17 00:00:00 2001 From: Jonathan Alter Date: Wed, 27 Nov 2024 17:08:35 -0600 Subject: [PATCH] no_default_bound: remove Default bound in Deref/DerefMut --- crates/async-dropper-simple/src/no_default_bound.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/async-dropper-simple/src/no_default_bound.rs b/crates/async-dropper-simple/src/no_default_bound.rs index cae307e..504c8e2 100644 --- a/crates/async-dropper-simple/src/no_default_bound.rs +++ b/crates/async-dropper-simple/src/no_default_bound.rs @@ -70,7 +70,7 @@ impl Default for AsyncDropper { impl Deref for AsyncDropper where - T: AsyncDrop + Send + Default, + T: AsyncDrop + Send, { type Target = T; @@ -81,7 +81,7 @@ where impl DerefMut for AsyncDropper where - T: AsyncDrop + Send + Default, + T: AsyncDrop + Send, { fn deref_mut(&mut self) -> &mut T { self.inner_mut()