diff --git a/anise-py/src/lib.rs b/anise-py/src/lib.rs index 945e54a7..501b4705 100644 --- a/anise-py/src/lib.rs +++ b/anise-py/src/lib.rs @@ -20,8 +20,8 @@ use pyo3::py_run; mod astro; mod constants; -mod utils; mod rotations; +mod utils; /// A Python module implemented in Rust. #[pymodule] diff --git a/anise/src/math/rotation/dcm_py.rs b/anise/src/math/rotation/dcm_py.rs index f6f8f653..e613bd68 100644 --- a/anise/src/math/rotation/dcm_py.rs +++ b/anise/src/math/rotation/dcm_py.rs @@ -29,14 +29,14 @@ impl DCM { to_id: NaifId, np_rot_mat_dt: Option>, ) -> PyResult { - if np_rot_mat.shape() != &[3, 3] { + if np_rot_mat.shape() != [3, 3] { return Err(PyErr::new::("rotation matrix must be 3x3")); } let rot_mat = Matrix3::from_row_iterator(np_rot_mat.as_array().iter().copied()); let rot_mat_dt = if let Some(np_rot_mat_dt) = np_rot_mat_dt { - if np_rot_mat_dt.shape() != &[3, 3] { + if np_rot_mat_dt.shape() != [3, 3] { return Err(PyErr::new::("rotation matrix must be 3x3")); } Some(Matrix3::from_row_iterator( diff --git a/anise/src/naif/pck/mod.rs b/anise/src/naif/pck/mod.rs index dc3d8e2f..6d743e0c 100644 --- a/anise/src/naif/pck/mod.rs +++ b/anise/src/naif/pck/mod.rs @@ -46,7 +46,6 @@ impl BPCSummaryRecord { } /// Returns the start epoch of this BPC Summary - pub fn end_epoch(&self) -> Epoch { ::end_epoch(self) }