From 0a692c01de89877b97e68b7eb02587b31dc9f71a Mon Sep 17 00:00:00 2001 From: Stephan Rehfeld Date: Wed, 13 May 2026 18:03:19 +0200 Subject: [PATCH] You can also make a whole module public, to allow access --- src/lib.rs | 4 +--- src/main.rs | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index e49766f..2c80124 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,2 @@ mod geometry; -mod math; - -pub use math::Point3; +pub mod math; diff --git a/src/main.rs b/src/main.rs index 94d2357..b18956d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,4 +1,4 @@ -use hello::Point3; +use hello::math::Point3; fn main() { let p = Point3::new(0.0, 0.0, 0.0);