From 6bf5b65e3517668b5c25a32ef5c1adf331dcb00e Mon Sep 17 00:00:00 2001 From: "J. Sebastian Paez" Date: Thu, 25 Jul 2024 11:07:02 -0700 Subject: [PATCH] (chore) clippy nightly --- src/aggregation/queriable_collections/mod.rs | 1 - .../queriable_collections/queriable_traces.rs | 1 - src/ms/frames/frame_slice.rs | 7 ++----- src/ms/frames/frames.rs | 10 +--------- 4 files changed, 3 insertions(+), 16 deletions(-) diff --git a/src/aggregation/queriable_collections/mod.rs b/src/aggregation/queriable_collections/mod.rs index 880d64c..4f13017 100644 --- a/src/aggregation/queriable_collections/mod.rs +++ b/src/aggregation/queriable_collections/mod.rs @@ -1,4 +1,3 @@ pub mod queriable_indexed_points; pub mod queriable_traces; -pub use queriable_indexed_points::QueriableIndexedPoints; pub use queriable_traces::QueriableTraces; diff --git a/src/aggregation/queriable_collections/queriable_traces.rs b/src/aggregation/queriable_collections/queriable_traces.rs index f931f6e..3a90211 100644 --- a/src/aggregation/queriable_collections/queriable_traces.rs +++ b/src/aggregation/queriable_collections/queriable_traces.rs @@ -2,7 +2,6 @@ use log::info; use rayon::prelude::*; use crate::aggregation::tracing::BaseTrace; -pub use crate::aggregation::tracing::TimeTimsPeak; pub use crate::space::space_generics::{ AsAggregableAtIndex, AsNDPointsAtIndex, diff --git a/src/ms/frames/frame_slice.rs b/src/ms/frames/frame_slice.rs index 05b9f6e..48ba993 100644 --- a/src/ms/frames/frame_slice.rs +++ b/src/ms/frames/frame_slice.rs @@ -371,11 +371,8 @@ impl<'a> FrameSlice<'a> { tolerance, ); - match tmp { - Ok(Some(range_offset)) => { - ranges.ranges.push(range_offset); - }, - _ => (), + if let Ok(Some(range_offset)) = tmp { + ranges.ranges.push(range_offset); } } diff --git a/src/ms/frames/frames.rs b/src/ms/frames/frames.rs index 3d71cba..13d7851 100644 --- a/src/ms/frames/frames.rs +++ b/src/ms/frames/frames.rs @@ -1,13 +1,5 @@ use serde::Serialize; -pub use timsrust::{ - ConvertableIndex, - FileReader, - Frame, - Frame2RtConverter, - FrameType, - Scan2ImConverter, - Tof2MzConverter, -}; +pub use timsrust::FrameType; use crate::space::space_generics::HasIntensity;