aboutsummaryrefslogtreecommitdiff
path: root/syntax/doc.rs
diff options
context:
space:
mode:
authorMatthew Maurer <mmaurer@google.com>2024-03-19 17:53:21 +0000
committerMatthew Maurer <mmaurer@google.com>2024-03-19 18:22:13 +0000
commit15cbbff88df7a8191d88c7aebefc7b508bd4de69 (patch)
treea559c2c5f783d4cbd605578eee27269d1e3c533b /syntax/doc.rs
parent6bdb9aa5e8afca684f73b8b30a162f3064e183a6 (diff)
parent07a056908617acbdad914acda674b6da88ed1add (diff)
downloadcxx-15cbbff88df7a8191d88c7aebefc7b508bd4de69.tar.gz
Update cxx to latest master
* Update build to match upstream's use of edition 2021 Test: mmm Change-Id: Iad58f8bb416050de4fb3f3087c051d680a2180e7
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();