Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
Update src/array/binary/mutable.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Jorge Leitao <[email protected]>
  • Loading branch information
ritchie46 and jorgecarleitao authored Oct 1, 2021
1 parent f70122b commit 1533023
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/array/binary/mutable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ impl<O: Offset> MutableBinaryArray<O> {
/// Shrinks the capacity of the [`MutableBinaryArray`] to fit its current length.
pub fn shrink_to_fit(&mut self) {
self.values.shrink_to_fit();
self.offsets.shrink_to_fit();
if let Some(validity) = &mut self.validity {
validity.shrink_to_fit()
}
Expand Down

0 comments on commit 1533023

Please sign in to comment.