servo / euclid

Geometry primitives (basic linear algebra) for Rust
Other
462 stars 102 forks source link

(breaking change) Simplify the code by requiring Copy instead of Clone #456

Closed nical closed 4 years ago

nical commented 4 years ago

See #454

Anything doing more than a couple of operations (all of the transforms code for example) already requires Copy. This change takes the position that we are better off not supporting non-Copy types with simpler code than complicate the code to half-support them. Since Clone implies Copy, we can change our minds later and relax the requirements without requiring a breaking change.

This is on top of #455 which will have to land before this can be rebased and landed.

nical commented 4 years ago

@bors-servo r=kvark

bors-servo commented 4 years ago

:pushpin: Commit 9be3024 has been approved by kvark

bors-servo commented 4 years ago

:hourglass: Testing commit 9be3024aab7f7e5b34ac0c89bb1a5db044d949a7 with merge 07301c014569d81ac50e6cab52be90d055031da2...

bors-servo commented 4 years ago

:sunny: Test successful - checks-travis Approved by: kvark Pushing 07301c014569d81ac50e6cab52be90d055031da2 to master...