aboutsummaryrefslogtreecommitdiff
path: root/gen/src/include.rs
diff options
context:
space:
mode:
Diffstat (limited to 'gen/src/include.rs')
-rw-r--r--gen/src/include.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/gen/src/include.rs b/gen/src/include.rs
index 62c92320..3b137c7e 100644
--- a/gen/src/include.rs
+++ b/gen/src/include.rs
@@ -19,7 +19,7 @@ pub struct Include {
}
#[derive(Default, PartialEq)]
-pub struct Includes<'a> {
+pub(crate) struct Includes<'a> {
pub custom: Vec<Include>,
pub algorithm: bool,
pub array: bool,
@@ -44,15 +44,15 @@ pub struct Includes<'a> {
}
impl<'a> Includes<'a> {
- pub fn new() -> Self {
+ pub(crate) fn new() -> Self {
Includes::default()
}
- pub fn insert(&mut self, include: impl Into<Include>) {
+ pub(crate) fn insert(&mut self, include: impl Into<Include>) {
self.custom.push(include.into());
}
- pub fn has_cxx_header(&self) -> bool {
+ pub(crate) fn has_cxx_header(&self) -> bool {
self.custom
.iter()
.any(|header| header.path == "rust/cxx.h" || header.path == "rust\\cxx.h")