Skip to content

Commit 69981b6

Browse files
committed
Restrict re-exported items in lib.rs
Make only to_datafusion_err publicly re-exported from the crate root. Keep PyDataFusionError and PyDataFusionResult as private imports for internal use, enhancing encapsulation and reducing exposure of non-essential components.
1 parent 00bbe79 commit 69981b6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

crates/util/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ use tokio::task::JoinHandle;
3333
use tokio::time::sleep;
3434

3535
pub mod errors;
36-
pub use crate::errors::{
37-
PyDataFusionError, PyDataFusionResult, py_datafusion_err, to_datafusion_err,
38-
};
36+
pub use crate::errors::to_datafusion_err;
37+
38+
use crate::errors::{PyDataFusionError, PyDataFusionResult};
3939

4040
/// Utility to get the Tokio Runtime from Python
4141
#[inline]

0 commit comments

Comments
 (0)