Skip to content

Commit

Permalink
Remove Copy from Ensure* traits (paritytech#13043)
Browse files Browse the repository at this point in the history
* Remove Copy from EnsureOp and EnsureOpAssign

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* Remove Copy from EnsureFrom and EnsureInto

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* Fix default impl

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* Reuse assignment code in Ensure trait

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* Require Ensure for all BaseArithmetic types

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* Fix assign impls

Co-authored-by: Luis Enrique Muñoz Martín <[email protected]>

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* Add tests

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* Add success doc tests

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

Signed-off-by: Oliver Tale-Yazdi <[email protected]>
  • Loading branch information
ggwpez authored Jan 4, 2023
1 parent da3a34f commit 68fc275
Showing 1 changed file with 251 additions and 53 deletions.
Loading

0 comments on commit 68fc275

Please sign in to comment.