diff --git a/crates/header-translator/src/stmt.rs b/crates/header-translator/src/stmt.rs index 75178c760..55c6ff709 100644 --- a/crates/header-translator/src/stmt.rs +++ b/crates/header-translator/src/stmt.rs @@ -2117,7 +2117,9 @@ impl Stmt { writeln!(f, "pub struct {} {{", id.name)?; for (name, ty) in fields { write!(f, " ")?; - if !name.starts_with('_') { + if name.starts_with('_') { + write!(f, "pub(crate) ")?; + } else { write!(f, "pub ")?; } let name = handle_reserved(name); diff --git a/generated b/generated index a6d2caa2c..5889b4326 160000 --- a/generated +++ b/generated @@ -1 +1 @@ -Subproject commit a6d2caa2c2b95e29cecddfee8d6613fdb8d27250 +Subproject commit 5889b4326e1dbac241422924d09ae615c413c681