Skip to content

Commit 2b06585

Browse files
impl Display for CachePadded<T> (#1097)
Co-authored-by: Taiki Endo <[email protected]>
1 parent 7bc1c8e commit 2b06585

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

crossbeam-utils/src/cache_padded.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,3 +207,9 @@ impl<T> From<T> for CachePadded<T> {
207207
CachePadded::new(t)
208208
}
209209
}
210+
211+
impl<T: fmt::Display> fmt::Display for CachePadded<T> {
212+
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
213+
fmt::Display::fmt(&self.value, f)
214+
}
215+
}

0 commit comments

Comments
 (0)