Skip to content

Commit 3404ca3

Browse files
authored
Merge pull request #2571 from subspace/debug-impl-for-farmer-piece-getter
Debug implementation for `FarmerPieceGetter`
2 parents 3765fa4 + 2a73f52 commit 3404ca3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

crates/subspace-farmer/src/utils/farmer_piece_getter.rs

+7
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ use backoff::ExponentialBackoff;
99
use parking_lot::Mutex;
1010
use std::collections::HashMap;
1111
use std::error::Error;
12+
use std::fmt;
1213
use std::sync::atomic::{AtomicU32, Ordering};
1314
use std::sync::{Arc, Weak};
1415
use subspace_core_primitives::{Piece, PieceIndex};
@@ -41,6 +42,12 @@ pub struct FarmerPieceGetter<PV, NC> {
4142
inner: Arc<Inner<PV, NC>>,
4243
}
4344

45+
impl<PV, NC> fmt::Debug for FarmerPieceGetter<PV, NC> {
46+
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
47+
f.debug_struct("FarmerPieceGetter").finish_non_exhaustive()
48+
}
49+
}
50+
4451
impl<PV, NC> Clone for FarmerPieceGetter<PV, NC> {
4552
fn clone(&self) -> Self {
4653
Self {

0 commit comments

Comments
 (0)