From b4899ad260a03216b96aafd29acb238c12a11914 Mon Sep 17 00:00:00 2001 From: coastalwhite Date: Tue, 23 Jul 2024 14:37:06 +0200 Subject: [PATCH] rust format --- crates/polars-utils/src/foreign_vec.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/crates/polars-utils/src/foreign_vec.rs b/crates/polars-utils/src/foreign_vec.rs index 9ab1ddbb34ef..f763246ec029 100644 --- a/crates/polars-utils/src/foreign_vec.rs +++ b/crates/polars-utils/src/foreign_vec.rs @@ -1,5 +1,4 @@ /// This is pulled out of https://github.com/DataEngineeringLabs/foreign_vec - use std::mem::ManuallyDrop; use std::ops::DerefMut; use std::vec::Vec; @@ -66,11 +65,11 @@ impl Drop for ForeignVec { match self.allocation { Allocation::Foreign(_) => { // the foreign is dropped via its `Drop` - } + }, Allocation::Native => { let data = core::mem::take(&mut self.data); let _ = ManuallyDrop::into_inner(data); - } + }, } } }