From 7f3f109be0b38ce2d6648120280d00cebde5f203 Mon Sep 17 00:00:00 2001 From: Stijn de Gooijer Date: Tue, 17 Sep 2024 14:25:29 +0200 Subject: [PATCH] refactor(python): Make NodeTraverser struct public --- crates/polars-python/src/lazyframe/visit.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/polars-python/src/lazyframe/visit.rs b/crates/polars-python/src/lazyframe/visit.rs index 4a24261363f3..8507d590d84c 100644 --- a/crates/polars-python/src/lazyframe/visit.rs +++ b/crates/polars-python/src/lazyframe/visit.rs @@ -43,7 +43,7 @@ impl From<&ExprIR> for PyExprIR { type Version = (u16, u16); #[pyclass] -pub(crate) struct NodeTraverser { +pub struct NodeTraverser { root: Node, lp_arena: Arc>>, expr_arena: Arc>>, @@ -59,7 +59,7 @@ impl NodeTraverser { // changes (e.g. exposing a new expression node). const VERSION: Version = (2, 0); - pub(crate) fn new(root: Node, lp_arena: Arena, expr_arena: Arena) -> Self { + pub fn new(root: Node, lp_arena: Arena, expr_arena: Arena) -> Self { Self { root, lp_arena: Arc::new(Mutex::new(lp_arena)), @@ -71,7 +71,7 @@ impl NodeTraverser { } #[allow(clippy::type_complexity)] - pub(crate) fn get_arenas(&self) -> (Arc>>, Arc>>) { + pub fn get_arenas(&self) -> (Arc>>, Arc>>) { (self.lp_arena.clone(), self.expr_arena.clone()) }