diff --git a/rust/arrow/src/memory.rs b/rust/arrow/src/memory.rs index d73ddd11676c8..c941d34bfec16 100644 --- a/rust/arrow/src/memory.rs +++ b/rust/arrow/src/memory.rs @@ -51,7 +51,6 @@ pub unsafe fn memcpy(dst: *mut u8, src: *const u8, len: usize) { } extern "C" { - #[inline] pub fn memcmp(p1: *const u8, p2: *const u8, len: usize) -> i32; } diff --git a/rust/parquet/src/encodings/decoding.rs b/rust/parquet/src/encodings/decoding.rs index 7dc97b65cf94b..453d91cae83ad 100644 --- a/rust/parquet/src/encodings/decoding.rs +++ b/rust/parquet/src/encodings/decoding.rs @@ -657,10 +657,8 @@ impl Decoder for DeltaBitPackDecoder { /// Helper trait to define specific conversions when decoding values trait DeltaBitPackDecoderConversion { /// Sets decoded value based on type `T`. - #[inline] fn get_delta(&self, index: usize) -> i64; - #[inline] fn set_decoded_value(&self, buffer: &mut [T::T], index: usize, value: i64); } diff --git a/rust/parquet/src/encodings/encoding.rs b/rust/parquet/src/encodings/encoding.rs index 5aae81d242f42..c9cad12e42d6a 100644 --- a/rust/parquet/src/encodings/encoding.rs +++ b/rust/parquet/src/encodings/encoding.rs @@ -417,7 +417,6 @@ impl Encoder for DictEncoder { /// Provides encoded size for a data type. /// This is a workaround to calculate dictionary size in bytes. trait DictEncodedSize { - #[inline] fn get_encoded_size(&self, value: &T::T) -> usize; } @@ -752,16 +751,12 @@ impl Encoder for DeltaBitPackEncoder { /// Helper trait to define specific conversions and subtractions when computing deltas trait DeltaBitPackEncoderConversion { // Method should panic if type is not supported, otherwise no-op - #[inline] fn assert_supported_type(); - #[inline] fn as_i64(&self, values: &[T::T], index: usize) -> i64; - #[inline] fn subtract(&self, left: i64, right: i64) -> i64; - #[inline] fn subtract_u64(&self, left: i64, right: i64) -> u64; }