From 9679ae5ba258fe174d7fe67dbf658146dcd6e5e0 Mon Sep 17 00:00:00 2001 From: Magnus Ulimoen Date: Sun, 21 Nov 2021 11:20:42 +0100 Subject: [PATCH] Remove superfluous import --- sbp/src/operators/interpolation/interpolation8.rs | 2 -- sbp/src/operators/interpolation/interpolation9.rs | 2 -- sbp/src/operators/interpolation/interpolation9h2.rs | 2 -- 3 files changed, 6 deletions(-) diff --git a/sbp/src/operators/interpolation/interpolation8.rs b/sbp/src/operators/interpolation/interpolation8.rs index 6ecc272..0825cd7 100644 --- a/sbp/src/operators/interpolation/interpolation8.rs +++ b/sbp/src/operators/interpolation/interpolation8.rs @@ -52,7 +52,6 @@ impl InterpolationOperator for Interpolation8 { fn fine2coarse(&self, fine: ArrayView1, coarse: ArrayViewMut1) { assert_eq!(fine.len(), 2 * coarse.len() - 1); use ndarray::prelude::*; - use std::iter::FromIterator; let block = Array::from_iter(Self::F2C_BLOCK.iter().flatten().copied()) .into_shape((Self::F2C_BLOCK.len(), Self::F2C_BLOCK[0].len())) .unwrap(); @@ -64,7 +63,6 @@ impl InterpolationOperator for Interpolation8 { fn coarse2fine(&self, coarse: ArrayView1, fine: ArrayViewMut1) { assert_eq!(fine.len(), 2 * coarse.len() - 1); use ndarray::prelude::*; - use std::iter::FromIterator; let block = Array::from_iter(Self::C2F_BLOCK.iter().flatten().copied()) .into_shape((Self::C2F_BLOCK.len(), Self::C2F_BLOCK[0].len())) .unwrap(); diff --git a/sbp/src/operators/interpolation/interpolation9.rs b/sbp/src/operators/interpolation/interpolation9.rs index fda74a1..354c1d9 100644 --- a/sbp/src/operators/interpolation/interpolation9.rs +++ b/sbp/src/operators/interpolation/interpolation9.rs @@ -53,7 +53,6 @@ impl InterpolationOperator for Interpolation9 { fn fine2coarse(&self, fine: ArrayView1, coarse: ArrayViewMut1) { assert_eq!(fine.len(), 2 * coarse.len() - 1); use ndarray::prelude::*; - use std::iter::FromIterator; let block = Array::from_iter(Self::F2C_BLOCK.iter().flatten().copied()) .into_shape((Self::F2C_BLOCK.len(), Self::F2C_BLOCK[0].len())) .unwrap(); @@ -65,7 +64,6 @@ impl InterpolationOperator for Interpolation9 { fn coarse2fine(&self, coarse: ArrayView1, fine: ArrayViewMut1) { assert_eq!(fine.len(), 2 * coarse.len() - 1); use ndarray::prelude::*; - use std::iter::FromIterator; let block = Array::from_iter(Self::C2F_BLOCK.iter().flatten().copied()) .into_shape((Self::C2F_BLOCK.len(), Self::C2F_BLOCK[0].len())) .unwrap(); diff --git a/sbp/src/operators/interpolation/interpolation9h2.rs b/sbp/src/operators/interpolation/interpolation9h2.rs index f1ee50d..ee9abc3 100644 --- a/sbp/src/operators/interpolation/interpolation9h2.rs +++ b/sbp/src/operators/interpolation/interpolation9h2.rs @@ -53,7 +53,6 @@ impl InterpolationOperator for Interpolation9h2 { fn fine2coarse(&self, fine: ArrayView1, coarse: ArrayViewMut1) { assert_eq!(fine.len(), 2 * (coarse.len() - 1)); use ndarray::prelude::*; - use std::iter::FromIterator; let block = Array::from_iter(Self::F2C_BLOCK.iter().flatten().copied()) .into_shape((Self::F2C_BLOCK.len(), Self::F2C_BLOCK[0].len())) .unwrap(); @@ -65,7 +64,6 @@ impl InterpolationOperator for Interpolation9h2 { fn coarse2fine(&self, coarse: ArrayView1, fine: ArrayViewMut1) { assert_eq!(fine.len(), 2 * (coarse.len() - 1)); use ndarray::prelude::*; - use std::iter::FromIterator; let block = Array::from_iter(Self::C2F_BLOCK.iter().flatten().copied()) .into_shape((Self::C2F_BLOCK.len(), Self::C2F_BLOCK[0].len())) .unwrap();