Skip to content

Commit

Permalink
no_default_bound: remove Default bound in Deref/DerefMut
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaltaire committed Nov 27, 2024
1 parent ec6e5bb commit f23d91d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/async-dropper-simple/src/no_default_bound.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ impl<T: AsyncDrop + Send> Default for AsyncDropper<T> {

impl<T> Deref for AsyncDropper<T>
where
T: AsyncDrop + Send + Default,
T: AsyncDrop + Send,
{
type Target = T;

Expand All @@ -81,7 +81,7 @@ where

impl<T> DerefMut for AsyncDropper<T>
where
T: AsyncDrop + Send + Default,
T: AsyncDrop + Send,
{
fn deref_mut(&mut self) -> &mut T {
self.inner_mut()
Expand Down

0 comments on commit f23d91d

Please sign in to comment.