From 52ab059dc88448edc98fcfa75ebad8ba9955a40c Mon Sep 17 00:00:00 2001 From: Nazar Mokrynskyi Date: Thu, 29 Feb 2024 20:50:48 +0200 Subject: [PATCH] Manual debug implementation for `WeakFarmerPieceGetter` --- crates/subspace-farmer/src/utils/farmer_piece_getter.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/crates/subspace-farmer/src/utils/farmer_piece_getter.rs b/crates/subspace-farmer/src/utils/farmer_piece_getter.rs index 8375af67fa..583a892ea9 100644 --- a/crates/subspace-farmer/src/utils/farmer_piece_getter.rs +++ b/crates/subspace-farmer/src/utils/farmer_piece_getter.rs @@ -350,11 +350,17 @@ where } /// Weak farmer piece getter, can be upgraded to [`FarmerPieceGetter`] -#[derive(Debug)] pub struct WeakFarmerPieceGetter { inner: Weak>, } +impl fmt::Debug for WeakFarmerPieceGetter { + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + f.debug_struct("WeakFarmerPieceGetter") + .finish_non_exhaustive() + } +} + impl Clone for WeakFarmerPieceGetter { fn clone(&self) -> Self { Self {