Skip to content

Commit

Permalink
impl Display for CachePadded<T> (#1097)
Browse files Browse the repository at this point in the history
Co-authored-by: Taiki Endo <[email protected]>
  • Loading branch information
joshua-mo-143 and taiki-e authored Apr 19, 2024
1 parent 9e85961 commit 2128578
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions crossbeam-utils/src/cache_padded.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,3 +207,9 @@ impl<T> From<T> for CachePadded<T> {
Self::new(t)
}
}

impl<T: fmt::Display> fmt::Display for CachePadded<T> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
fmt::Display::fmt(&self.value, f)
}
}

0 comments on commit 2128578

Please sign in to comment.