mirror of
https://github.com/eyre-rs/eyre.git
synced 2025-09-28 05:21:34 +00:00
Remove trait bounds from MessageError struct
Trait bounds are for behavior, not data. It is sufficient for the bounds to be on the impl blocks i.e. the behavior only.
This commit is contained in:
parent
7dcc85121b
commit
eac05d1c69
@ -236,9 +236,7 @@ struct TraitObject {
|
||||
}
|
||||
|
||||
#[repr(transparent)]
|
||||
struct MessageError<M>(M)
|
||||
where
|
||||
M: Display + Debug;
|
||||
struct MessageError<M>(M);
|
||||
|
||||
impl<M> Debug for MessageError<M>
|
||||
where
|
||||
|
Loading…
x
Reference in New Issue
Block a user