From 6d3e0380a885bacea4133b605511d9d4048861a1 Mon Sep 17 00:00:00 2001 From: Jay Chia Date: Sun, 1 Oct 2023 14:13:11 -0700 Subject: [PATCH] Consume GlobState on call to with_wildcard_mode --- src/daft-io/src/glob.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/daft-io/src/glob.rs b/src/daft-io/src/glob.rs index c7b834ba5f..2d0d95183e 100644 --- a/src/daft-io/src/glob.rs +++ b/src/daft-io/src/glob.rs @@ -40,10 +40,10 @@ impl GlobState { } } - pub fn with_wildcard_mode(&self) -> Self { + pub fn with_wildcard_mode(self) -> Self { GlobState { wildcard_mode: true, - ..self.clone() + ..self } } }