Skip to content

Commit 249b515

Browse files
committed
chore: more clippy
1 parent 6442fa2 commit 249b515

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

src/io/offset_index.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ impl OffsetIndex {
7373
self.offsets.is_empty()
7474
}
7575

76-
pub fn keys(&self) -> Keys<Box<str>, u64> {
76+
pub fn keys(&self) -> Keys<'_, Box<str>, u64> {
7777
self.offsets.keys()
7878
}
7979

src/meta/data_processing.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ impl DataProcessing {
4040
self.methods.push(method)
4141
}
4242

43-
pub fn iter(&self) -> std::slice::Iter<ProcessingMethod> {
43+
pub fn iter(&self) -> std::slice::Iter<'_, ProcessingMethod> {
4444
self.methods.iter()
4545
}
4646

src/meta/instrument.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ impl InstrumentConfiguration {
194194
self.components.push(value)
195195
}
196196

197-
pub fn iter(&self) -> std::slice::Iter<Component> {
197+
pub fn iter(&self) -> std::slice::Iter<'_, Component> {
198198
self.components.iter()
199199
}
200200

src/params.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1864,7 +1864,7 @@ impl ParamLike for Param {
18641864
&self.name
18651865
}
18661866

1867-
fn value(&self) -> ValueRef {
1867+
fn value(&self) -> ValueRef<'_> {
18681868
self.value.as_ref()
18691869
}
18701870

@@ -2217,7 +2217,7 @@ pub trait ParamDescribedRead {
22172217
}
22182218

22192219
/// Iterate over the encapsulated parameter list
2220-
fn iter_params(&self) -> std::slice::Iter<Param> {
2220+
fn iter_params(&self) -> std::slice::Iter<'_, Param> {
22212221
self.params().iter()
22222222
}
22232223
}
@@ -2242,7 +2242,7 @@ pub trait ParamDescribedMut {
22422242
}
22432243

22442244
/// Iterate mutably over the encapsulated parameter list
2245-
fn iter_params_mut(&mut self) -> std::slice::IterMut<Param> {
2245+
fn iter_params_mut(&mut self) -> std::slice::IterMut<'_, Param> {
22462246
self.params_mut().iter_mut()
22472247
}
22482248
}

src/spectrum/bindata/array.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ impl<'transient, 'lifespan: 'transient> DataArray {
202202

203203
pub fn encode_bytestring(&self, compression: BinaryCompressionType) -> Bytes {
204204
if self.compression == compression {
205-
log::debug!("Fast-path encoding {}:{}", self.name, self.dtype);
205+
log::trace!("Fast-path encoding {}:{}", self.name, self.dtype);
206206
return self.data.clone();
207207
}
208208
let bytestring = match self.compression {

src/spectrum/frame.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ impl<C: FeatureLike<MZ, IonMobility>, D: FeatureLike<Mass, IonMobility> + KnownC
403403
self.arrays.as_ref()
404404
}
405405

406-
fn features(&self) -> RefFeatureDataLevel<C, D> {
406+
fn features(&self) -> RefFeatureDataLevel<'_, C, D> {
407407
let state = if let Some(d) = self.deconvoluted_features.as_ref() {
408408
RefFeatureDataLevel::Deconvoluted(d)
409409
} else if let Some(c) = self.features.as_ref() {

0 commit comments

Comments
 (0)