From 3a3313704ab7589c3fd0f939c4744e74cd4a78fe Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 15 May 2023 08:48:35 +0200 Subject: remove box_syntax --- src/pattern.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/pattern.rs') diff --git a/src/pattern.rs b/src/pattern.rs index 8049c23..8bc2344 100644 --- a/src/pattern.rs +++ b/src/pattern.rs @@ -13,7 +13,7 @@ impl Sample for Rainbow { }; } fn clone(&self) -> Box { - box Clone::clone(self) + Box::new(Clone::clone(self)) } } @@ -24,7 +24,7 @@ impl Sample for Sequence { self.0[x.rem_euclid(self.0.len() as f64) as usize] } fn clone(&self) -> Box { - box Clone::clone(self) + Box::new(Clone::clone(self)) } } @@ -39,7 +39,7 @@ impl Sample for Gradient { Color::mix(a, b, index_error) } fn clone(&self) -> Box { - box Clone::clone(self) + Box::new(Clone::clone(self)) } } @@ -50,6 +50,6 @@ impl Sample for Solid { self.0 } fn clone(&self) -> Box { - box Clone::clone(self) + Box::new(Clone::clone(self)) } } -- cgit v1.2.3-70-g09d2