servo / euclid

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

Change some methods of Rect to not require unused trait 'Zero' #395

Closed Cobrand closed 4 years ago

Cobrand commented 4 years ago

Some methods of Rect required an unused 'Zero' trait, this PR removes the 'Zero' requirement from the methods which don't need this trait.

This is mostly useful for external numerical types which don't implement anything from num-traits (and thus don't implement Zero)


This change is Reviewable

nical commented 4 years ago

Thanks!

@bors-servo r+

bors-servo commented 4 years ago

:pushpin: Commit f73541d has been approved by nical

bors-servo commented 4 years ago

:hourglass: Testing commit f73541da57f991750ce02783a2a831cb10437f6a with merge 3c238914fa571c449a5f3279c82303fda44549a8...

bors-servo commented 4 years ago

:sunny: Test successful - checks-travis Approved by: nical Pushing 3c238914fa571c449a5f3279c82303fda44549a8 to master...