From 06dd9b9f6291f3fec36bdc7b2f4f7048b5403cf1 Mon Sep 17 00:00:00 2001 From: "R. Tyler Croy" Date: Wed, 21 Aug 2024 12:19:27 -0700 Subject: [PATCH] fix reference in doctest to size_of which is not imported by default This corrects an issue with this doctest noticed on FreeBSD/amd64 with rustc 1.77.0 --- arrow-data/src/transform/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arrow-data/src/transform/mod.rs b/arrow-data/src/transform/mod.rs index c6d834aea02b..edc68f1a107f 100644 --- a/arrow-data/src/transform/mod.rs +++ b/arrow-data/src/transform/mod.rs @@ -115,7 +115,7 @@ fn build_extend_null_bits(array: &ArrayData, use_nulls: bool) -> ExtendNullBits /// let arr1 = i32_array(&[1, 2, 3, 4, 5]); /// let arr2 = i32_array(&[6, 7, 8, 9, 10]); /// // Create a mutable array for copying values from arr1 and arr2, with a capacity for 6 elements -/// let capacity = 3 * size_of::(); +/// let capacity = 3 * std::mem::size_of::(); /// let mut mutable = MutableArrayData::new(vec![&arr1, &arr2], false, 10); /// // Copy the first 3 elements from arr1 /// mutable.extend(0, 0, 3);