From 76681d40623c8a6b8b48ae1108568ed5b799f7ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Manuel=20Tom=C3=A1s?= Date: Sat, 16 Jan 2021 04:33:09 -0300 Subject: Run cargo fmt for the first time --- src/lerp.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/lerp.rs') diff --git a/src/lerp.rs b/src/lerp.rs index 2ea444e..222671f 100644 --- a/src/lerp.rs +++ b/src/lerp.rs @@ -3,7 +3,7 @@ use crate::poly::Poly; pub enum Lerp { Node(Box, Box), - Leaf(Number, Number) + Leaf(Number, Number), } impl Lerp { @@ -16,7 +16,10 @@ impl Lerp { 0 => Box::new(Lerp::Leaf(0.0, 0.0)), 1 => Box::new(Lerp::Leaf(v[0], v[0])), 2 => Box::new(Lerp::Leaf(v[0], v[1])), - _ => Box::new(Lerp::Node(Lerp::new_s(&v[0..v.len() - 1]), Lerp::new_s(&v[1..v.len()]))) + _ => Box::new(Lerp::Node( + Lerp::new_s(&v[0..v.len() - 1]), + Lerp::new_s(&v[1..v.len()]), + )), } } } -- cgit v1.2.3