diff --git a/rust/fury-core/src/row/row.rs b/rust/fury-core/src/row/row.rs index f71f7bc328..55d4d946b0 100644 --- a/rust/fury-core/src/row/row.rs +++ b/rust/fury-core/src/row/row.rs @@ -74,7 +74,7 @@ impl<'a> Row<'a> for String { } } -impl<'a> Row<'a> for bool { +impl Row<'_> for bool { type ReadResult = Self; fn write(v: &Self, writer: &mut Writer) { @@ -86,7 +86,7 @@ impl<'a> Row<'a> for bool { } } -impl<'a> Row<'a> for NaiveDate { +impl Row<'_> for NaiveDate { type ReadResult = Result; fn write(v: &Self, writer: &mut Writer) { @@ -104,7 +104,7 @@ impl<'a> Row<'a> for NaiveDate { } } -impl<'a> Row<'a> for NaiveDateTime { +impl Row<'_> for NaiveDateTime { type ReadResult = Result; fn write(v: &Self, writer: &mut Writer) { diff --git a/rust/fury-core/src/row/writer.rs b/rust/fury-core/src/row/writer.rs index cc4668117a..2621c41e03 100644 --- a/rust/fury-core/src/row/writer.rs +++ b/rust/fury-core/src/row/writer.rs @@ -35,7 +35,7 @@ impl<'a> FieldWriterHelper<'a> { writer: &'a mut Writer, base_offset: usize, get_field_offset: Box usize>, - ) -> FieldWriterHelper { + ) -> FieldWriterHelper<'a> { FieldWriterHelper { writer, base_offset, @@ -67,7 +67,7 @@ pub struct StructWriter<'a> { field_writer_helper: FieldWriterHelper<'a>, } -impl<'a> StructWriter<'a> { +impl StructWriter<'_> { fn get_fixed_size(bit_map_width_in_bytes: usize, num_fields: usize) -> usize { bit_map_width_in_bytes + num_fields * 8 } @@ -105,7 +105,7 @@ pub struct ArrayWriter<'a> { field_writer_helper: FieldWriterHelper<'a>, } -impl<'a> ArrayWriter<'a> { +impl ArrayWriter<'_> { fn get_fixed_size(bit_map_width_in_bytes: usize, num_fields: usize) -> usize { 8 + bit_map_width_in_bytes + num_fields * 8 } @@ -148,7 +148,7 @@ pub struct MapWriter<'a> { writer: &'a mut Writer, } -impl<'a> MapWriter<'a> { +impl MapWriter<'_> { fn get_fixed_size(&self) -> usize { // key_byte_size 8