mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Don't bound on Copy to implement Animate for Size2D and Point2D
This commit is contained in:
parent
9f631fd886
commit
491a79ee4e
2 changed files with 32 additions and 32 deletions
|
@ -159,7 +159,7 @@ impl Animate for Au {
|
|||
|
||||
impl<T> Animate for Size2D<T>
|
||||
where
|
||||
T: Animate + Copy,
|
||||
T: Animate,
|
||||
{
|
||||
#[inline]
|
||||
fn animate(&self, other: &Self, procedure: Procedure) -> Result<Self, ()> {
|
||||
|
@ -172,7 +172,7 @@ where
|
|||
|
||||
impl<T> Animate for Point2D<T>
|
||||
where
|
||||
T: Animate + Copy,
|
||||
T: Animate,
|
||||
{
|
||||
#[inline]
|
||||
fn animate(&self, other: &Self, procedure: Procedure) -> Result<Self, ()> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue