aboutsummaryrefslogtreecommitdiff
path: root/syntax/doc.rs
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/doc.rs')
-rw-r--r--syntax/doc.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/syntax/doc.rs b/syntax/doc.rs
index 5de824f3..bd8111ea 100644
--- a/syntax/doc.rs
+++ b/syntax/doc.rs
@@ -2,30 +2,30 @@ use proc_macro2::TokenStream;
use quote::{quote, ToTokens};
use syn::LitStr;
-pub struct Doc {
- pub(crate) hidden: bool,
+pub(crate) struct Doc {
+ pub hidden: bool,
fragments: Vec<LitStr>,
}
impl Doc {
- pub fn new() -> Self {
+ pub(crate) fn new() -> Self {
Doc {
hidden: false,
fragments: Vec::new(),
}
}
- pub fn push(&mut self, lit: LitStr) {
+ pub(crate) fn push(&mut self, lit: LitStr) {
self.fragments.push(lit);
}
#[allow(dead_code)] // only used by cxx-build, not cxxbridge-macro
- pub fn is_empty(&self) -> bool {
+ pub(crate) fn is_empty(&self) -> bool {
self.fragments.is_empty()
}
#[allow(dead_code)] // only used by cxx-build, not cxxbridge-macro
- pub fn to_string(&self) -> String {
+ pub(crate) fn to_string(&self) -> String {
let mut doc = String::new();
for lit in &self.fragments {
doc += &lit.value();