Skip to content

Commit

Permalink
Restore missing future fmt::Debug impls
Browse files Browse the repository at this point in the history
  • Loading branch information
Jules-Bertholet committed Nov 26, 2023
1 parent b409933 commit 318a713
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/mutex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ pin_project_lite::pin_project! {
unsafe impl<T: Send + ?Sized> Send for Lock<'_, T> {}
unsafe impl<T: Sync + ?Sized> Sync for Lock<'_, T> {}

impl<T: ?Sized> fmt::Debug for LockInner<'_, T> {
impl<T: ?Sized> fmt::Debug for Lock<'_, T> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.write_str("Lock { .. }")
}
Expand Down
2 changes: 1 addition & 1 deletion src/semaphore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ pin_project_lite::pin_project! {
}
}

impl fmt::Debug for AcquireInner<'_> {
impl fmt::Debug for Acquire<'_> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.write_str("Acquire { .. }")
}
Expand Down

0 comments on commit 318a713

Please sign in to comment.