Skip to content

Commit ebcbb0c

Browse files
committed
Fix clippy lints
1 parent fcc242d commit ebcbb0c

File tree

25 files changed

+32
-32
lines changed

25 files changed

+32
-32
lines changed

codecs/asinh/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ impl StaticCodec for AsinhCodec {
110110
config
111111
}
112112

113-
fn get_config(&self) -> StaticCodecConfig<Self> {
113+
fn get_config(&self) -> StaticCodecConfig<'_, Self> {
114114
StaticCodecConfig::from(self)
115115
}
116116
}

codecs/bit-round/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ impl StaticCodec for BitRoundCodec {
9191
config
9292
}
9393

94-
fn get_config(&self) -> StaticCodecConfig<Self> {
94+
fn get_config(&self) -> StaticCodecConfig<'_, Self> {
9595
StaticCodecConfig::from(self)
9696
}
9797
}

codecs/fixed-offset-scale/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ impl StaticCodec for FixedOffsetScaleCodec {
120120
config
121121
}
122122

123-
fn get_config(&self) -> StaticCodecConfig<Self> {
123+
fn get_config(&self) -> StaticCodecConfig<'_, Self> {
124124
StaticCodecConfig::from(self)
125125
}
126126
}

codecs/fourier-network/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ impl StaticCodec for FourierNetworkCodec {
183183
config
184184
}
185185

186-
fn get_config(&self) -> StaticCodecConfig<Self> {
186+
fn get_config(&self) -> StaticCodecConfig<'_, Self> {
187187
StaticCodecConfig::from(self)
188188
}
189189
}

codecs/identity/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ impl StaticCodec for IdentityCodec {
6464
config
6565
}
6666

67-
fn get_config(&self) -> StaticCodecConfig<Self> {
67+
fn get_config(&self) -> StaticCodecConfig<'_, Self> {
6868
StaticCodecConfig::from(self)
6969
}
7070
}

codecs/jpeg2000/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ impl StaticCodec for Jpeg2000Codec {
147147
config
148148
}
149149

150-
fn get_config(&self) -> StaticCodecConfig<Self> {
150+
fn get_config(&self) -> StaticCodecConfig<'_, Self> {
151151
StaticCodecConfig::from(self)
152152
}
153153
}

codecs/linear-quantize/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ impl Codec for LinearQuantizeCodec {
223223
#[expect(clippy::option_if_let_else)]
224224
fn as_standard_order<T: Copy, S: Data<Elem = T>, D: Dimension>(
225225
array: &ArrayBase<S, D>,
226-
) -> Cow<[T]> {
226+
) -> Cow<'_, [T]> {
227227
if let Some(data) = array.as_slice() {
228228
Cow::Borrowed(data)
229229
} else {
@@ -303,7 +303,7 @@ impl Codec for LinearQuantizeCodec {
303303
) -> Result<(), Self::Error> {
304304
fn as_standard_order<T: Copy, S: Data<Elem = T>, D: Dimension>(
305305
array: &ArrayBase<S, D>,
306-
) -> Cow<[T]> {
306+
) -> Cow<'_, [T]> {
307307
#[expect(clippy::option_if_let_else)]
308308
if let Some(data) = array.as_slice() {
309309
Cow::Borrowed(data)
@@ -406,7 +406,7 @@ impl StaticCodec for LinearQuantizeCodec {
406406
config
407407
}
408408

409-
fn get_config(&self) -> StaticCodecConfig<Self> {
409+
fn get_config(&self) -> StaticCodecConfig<'_, Self> {
410410
StaticCodecConfig::from(self)
411411
}
412412
}

codecs/log/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ impl StaticCodec for LogCodec {
9292
config
9393
}
9494

95-
fn get_config(&self) -> StaticCodecConfig<Self> {
95+
fn get_config(&self) -> StaticCodecConfig<'_, Self> {
9696
StaticCodecConfig::from(self)
9797
}
9898
}

codecs/pco/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ impl StaticCodec for Pcodec {
348348
config
349349
}
350350

351-
fn get_config(&self) -> StaticCodecConfig<Self> {
351+
fn get_config(&self) -> StaticCodecConfig<'_, Self> {
352352
StaticCodecConfig::from(self)
353353
}
354354
}

codecs/random-projection/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ impl StaticCodec for RandomProjectionCodec {
194194
config
195195
}
196196

197-
fn get_config(&self) -> StaticCodecConfig<Self> {
197+
fn get_config(&self) -> StaticCodecConfig<'_, Self> {
198198
StaticCodecConfig::from(self)
199199
}
200200
}

0 commit comments

Comments
 (0)