diff --git a/serde_test/src/configure.rs b/serde_test/src/configure.rs index 57384745..bb6c17f4 100644 --- a/serde_test/src/configure.rs +++ b/serde_test/src/configure.rs @@ -71,18 +71,18 @@ pub struct Compact(T); /// ); /// } /// ``` -pub trait Configure : Sized { +pub trait Configure { /// Marks `self` as using `is_human_readable == true` - fn readable(self) -> Readable { + fn readable(self) -> Readable where Self: Sized { Readable(self) } /// Marks `self` as using `is_human_readable == false` - fn compact(self) -> Compact { + fn compact(self) -> Compact where Self: Sized { Compact(self) } } -impl Configure for T {} +impl Configure for T {} impl Serialize for Readable where