Skip to content
Myr

Remove trait bounds from MessageError struct

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trait bounds are for behavior, not data. It is sufficient for the bounds to be on the impl blocks i.e. the behavior only.

authored by David Tolnay · committed by David Tolnay · parent 7dcc851 · Browse files · 1 file+1 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−3 removed

  • other:+1 added−3 removed

1 file+1 added−3 removed

modified:src/error.rs+1 added-3 removed
234 unmodified lines
235 vtable: *const (),236}237238#[repr(transparent)]239struct MessageError<M>(M)240where241 M: Display + Debug;239struct MessageError<M>(M);240241impl<M> Debug for MessageError<M>242where243 M: Display + Debug,
98 unmodified lines