Skip to content

Commit

Permalink
fix fmt.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rachelint committed Oct 30, 2024
1 parent 236b0bc commit 15aaab1
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.

use std::mem;
use std::mem::{self, size_of};

use crate::aggregates::group_values::group_column::{
ByteGroupValueBuilder, ByteViewGroupValueBuilder, GroupColumn,
Expand Down Expand Up @@ -708,7 +708,7 @@ impl GroupValues for VectorizedGroupValuesColumn {
self.group_values.clear();
self.map.clear();
self.map.shrink_to(count, |_| 0); // hasher does not matter since the map is cleared
self.map_size = self.map.capacity() * mem::size_of::<(u64, usize)>();
self.map_size = self.map.capacity() * size_of::<(u64, usize)>();
self.hashes_buffer.clear();
self.hashes_buffer.shrink_to(count);
self.group_index_lists.clear();
Expand Down Expand Up @@ -970,7 +970,7 @@ impl GroupValues for GroupValuesColumn {
self.group_values.clear();
self.map.clear();
self.map.shrink_to(count, |_| 0); // hasher does not matter since the map is cleared
self.map_size = self.map.capacity() * mem::size_of::<(u64, usize)>();
self.map_size = self.map.capacity() * size_of::<(u64, usize)>();
self.hashes_buffer.clear();
self.hashes_buffer.shrink_to(count);
}
Expand Down

0 comments on commit 15aaab1

Please sign in to comment.