Skip to content

Commit d1f78de

Browse files
committed
chore: clippy --fix
1 parent 0d50788 commit d1f78de

File tree

17 files changed

+132
-231
lines changed

17 files changed

+132
-231
lines changed

packages/cubejs-backend-native/src/node_obj_deserializer.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ impl<'a, 'b> JsValueDeserializer<'a, 'b> {
4141
}
4242
}
4343

44-
impl<'de, 'a, 'b> Deserializer<'de> for JsValueDeserializer<'a, 'b> {
44+
impl<'de> Deserializer<'de> for JsValueDeserializer<'_, '_> {
4545
type Error = JsDeserializationError;
4646

4747
fn deserialize_any<V>(self, visitor: V) -> Result<V::Value, Self::Error>
@@ -294,7 +294,7 @@ impl<'a, 'b> JsObjectDeserializer<'a, 'b> {
294294

295295
// `MapAccess` is provided to the `Visitor` to give it the ability to iterate
296296
// through entries of the map.
297-
impl<'de, 'a, 'b> MapAccess<'de> for JsObjectDeserializer<'a, 'b> {
297+
impl<'de> MapAccess<'de> for JsObjectDeserializer<'_, '_> {
298298
type Error = JsDeserializationError;
299299

300300
fn next_key_seed<K>(&mut self, seed: K) -> Result<Option<K::Value>, Self::Error>
@@ -343,7 +343,7 @@ impl<'a, 'b> JsArrayDeserializer<'a, 'b> {
343343

344344
// `SeqAccess` is provided to the `Visitor` to give it the ability to iterate
345345
// through elements of the sequence.
346-
impl<'de, 'a, 'b> SeqAccess<'de> for JsArrayDeserializer<'a, 'b> {
346+
impl<'de> SeqAccess<'de> for JsArrayDeserializer<'_, '_> {
347347
type Error = JsDeserializationError;
348348

349349
fn next_element_seed<T>(&mut self, seed: T) -> Result<Option<T::Value>, Self::Error>
@@ -381,7 +381,7 @@ impl<'a, 'b> JsEnumDeserializer<'a, 'b> {
381381

382382
// `EnumAccess` is provided to the `Visitor` to give it the ability to determine
383383
// which variant of the enum is supposed to be deserialized.
384-
impl<'de, 'a, 'b> EnumAccess<'de> for JsEnumDeserializer<'a, 'b> {
384+
impl<'de> EnumAccess<'de> for JsEnumDeserializer<'_, '_> {
385385
type Error = JsDeserializationError;
386386
type Variant = Self;
387387

@@ -394,7 +394,7 @@ impl<'de, 'a, 'b> EnumAccess<'de> for JsEnumDeserializer<'a, 'b> {
394394
}
395395
}
396396

397-
impl<'de, 'a, 'b> VariantAccess<'de> for JsEnumDeserializer<'a, 'b> {
397+
impl<'de> VariantAccess<'de> for JsEnumDeserializer<'_, '_> {
398398
type Error = JsDeserializationError;
399399

400400
// If the `Visitor` expected this variant to be a unit variant, the input

packages/cubejs-backend-native/src/node_obj_serializer.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ impl<'a, 'b, C: Context<'a>> NodeObjSerializer<'a, 'b, C> {
5353
}
5454
}
5555

56-
impl<'a, 'b, 'c, C: Context<'a>> ser::Serializer for &'c mut NodeObjSerializer<'a, 'b, C> {
56+
impl<'a, 'c, C: Context<'a>> ser::Serializer for &'c mut NodeObjSerializer<'a, '_, C> {
5757
type Ok = Handle<'a, JsValue>;
5858
type Error = NodeObjSerializerError;
5959
type SerializeSeq = NodeObjSeqSerializer<'a, 'c, C>;
@@ -242,7 +242,7 @@ impl<'a, 'b, 'c, C: Context<'a>> ser::Serializer for &'c mut NodeObjSerializer<'
242242
}
243243
}
244244

245-
impl<'a, 'b, C: Context<'a>> ser::SerializeMap for NodeObjMapSerializer<'a, 'b, C> {
245+
impl<'a, C: Context<'a>> ser::SerializeMap for NodeObjMapSerializer<'a, '_, C> {
246246
type Ok = Handle<'a, JsValue>;
247247
type Error = NodeObjSerializerError;
248248

@@ -284,7 +284,7 @@ impl<'a, 'b, C: Context<'a>> ser::SerializeMap for NodeObjMapSerializer<'a, 'b,
284284
}
285285
}
286286

287-
impl<'a, 'b, C: Context<'a>> ser::SerializeTuple for NodeObjTupleSerializer<'a, 'b, C> {
287+
impl<'a, C: Context<'a>> ser::SerializeTuple for NodeObjTupleSerializer<'a, '_, C> {
288288
type Ok = Handle<'a, JsValue>;
289289
type Error = NodeObjSerializerError;
290290

@@ -299,7 +299,7 @@ impl<'a, 'b, C: Context<'a>> ser::SerializeTuple for NodeObjTupleSerializer<'a,
299299
}
300300
}
301301

302-
impl<'a, 'b, C: Context<'a>> ser::SerializeTupleStruct for NodeObjTupleSerializer<'a, 'b, C> {
302+
impl<'a, C: Context<'a>> ser::SerializeTupleStruct for NodeObjTupleSerializer<'a, '_, C> {
303303
type Ok = Handle<'a, JsValue>;
304304
type Error = NodeObjSerializerError;
305305

@@ -314,7 +314,7 @@ impl<'a, 'b, C: Context<'a>> ser::SerializeTupleStruct for NodeObjTupleSerialize
314314
}
315315
}
316316

317-
impl<'a, 'b, C: Context<'a>> ser::SerializeTupleVariant for NodeObjTupleSerializer<'a, 'b, C> {
317+
impl<'a, C: Context<'a>> ser::SerializeTupleVariant for NodeObjTupleSerializer<'a, '_, C> {
318318
type Ok = Handle<'a, JsValue>;
319319
type Error = NodeObjSerializerError;
320320

@@ -329,7 +329,7 @@ impl<'a, 'b, C: Context<'a>> ser::SerializeTupleVariant for NodeObjTupleSerializ
329329
}
330330
}
331331

332-
impl<'a, 'b, C: Context<'a>> ser::SerializeStruct for NodeObjMapSerializer<'a, 'b, C> {
332+
impl<'a, C: Context<'a>> ser::SerializeStruct for NodeObjMapSerializer<'a, '_, C> {
333333
type Ok = Handle<'a, JsValue>;
334334
type Error = NodeObjSerializerError;
335335

@@ -350,7 +350,7 @@ impl<'a, 'b, C: Context<'a>> ser::SerializeStruct for NodeObjMapSerializer<'a, '
350350
}
351351
}
352352

353-
impl<'a, 'b, C: Context<'a>> ser::SerializeStructVariant for NodeObjMapSerializer<'a, 'b, C> {
353+
impl<'a, C: Context<'a>> ser::SerializeStructVariant for NodeObjMapSerializer<'a, '_, C> {
354354
type Ok = Handle<'a, JsValue>;
355355
type Error = NodeObjSerializerError;
356356

@@ -369,7 +369,7 @@ impl<'a, 'b, C: Context<'a>> ser::SerializeStructVariant for NodeObjMapSerialize
369369
}
370370
}
371371

372-
impl<'a, 'b, C: Context<'a>> ser::SerializeSeq for NodeObjSeqSerializer<'a, 'b, C> {
372+
impl<'a, C: Context<'a>> ser::SerializeSeq for NodeObjSeqSerializer<'a, '_, C> {
373373
type Ok = Handle<'a, JsValue>;
374374
type Error = NodeObjSerializerError;
375375

0 commit comments

Comments
 (0)