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 <te316e89@gmail.com>
  • Loading branch information
joshua-mo-143 and taiki-e committed 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
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.