Skip to content

Commit

Permalink
Support dynamically sized field in error
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Nov 8, 2024
1 parent 8e8e273 commit 24c04da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub trait AsDisplay<'a>: Sealed {

impl<'a, T> AsDisplay<'a> for &T
where
T: Display + 'a,
T: Display + ?Sized + 'a,
{
type Target = &'a T;

Expand Down Expand Up @@ -44,7 +44,7 @@ impl<'a> AsDisplay<'a> for PathBuf {

#[doc(hidden)]
pub trait Sealed {}
impl<T: Display> Sealed for &T {}
impl<T: Display + ?Sized> Sealed for &T {}
#[cfg(feature = "std")]
impl Sealed for Path {}
#[cfg(feature = "std")]
Expand Down

0 comments on commit 24c04da

Please sign in to comment.