You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The asserts removed in this commit all follow the pattern:
assert_eq!(some_struct.member, DEFAULT_VAL);
These asserts seem to only exist for preventing re-assignment of struct
values if they have already been assigned. This doesn't match what the
builder pattern usually does in rust. Rather than implementing an error
for this case, and giving these methods the signature:
fn setter(self, val) -> Resutl<Self, Error::ReAssignment>
I removed the asserts to retain the standard builder pattern signature:
fn setter(self, val) -> Self
Signed-off-by: Erich Heine <[email protected]>
0 commit comments