stylo: Clamp Au on accumulation

This commit is contained in:
Manish Goregaokar 2017-09-06 14:19:10 -07:00 committed by Manish Goregaokar
parent 5e321cadf3
commit c063ff88de
2 changed files with 5 additions and 9 deletions

View file

@ -162,7 +162,7 @@ where
impl Animate for Au {
#[inline]
fn animate(&self, other: &Self, procedure: Procedure) -> Result<Self, ()> {
Ok(Au(self.0.animate(&other.0, procedure)?))
Ok(Au::new(self.0.animate(&other.0, procedure)?))
}
}