Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

with and without crate #91

Closed
wangjiawen2013 opened this issue Sep 24, 2024 · 1 comment
Closed

with and without crate #91

wangjiawen2013 opened this issue Sep 24, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@wangjiawen2013
Copy link
Contributor

Hi,
This is a snippet of code adopted from lib.rs:

mod plot;
mod slope_icon;
mod super_title_params;
mod surface;
mod surface_geometry;
mod text;
pub use crate::as_matrix::*;
pub use crate::as_vector::*;
pub use crate::auxiliary::*;
pub use crate::barplot::*;
pub use crate::boxplot::*;
pub use crate::canvas::*;

what's the difference between pub use crate::as_matrix::*; and pub use as_matrix::*; here ? Can the crate be omitted ?

@cpmech
Copy link
Owner

cpmech commented Sep 24, 2024

You're right; we don't need the word crate here. I guess I left the word crate when I was learning Rust. I've simplified these statements in #92

@cpmech cpmech closed this as completed Sep 25, 2024
@cpmech cpmech added the enhancement New feature or request label Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants