aboutsummaryrefslogtreecommitdiff
path: root/gen/src/block.rs
diff options
context:
space:
mode:
Diffstat (limited to 'gen/src/block.rs')
-rw-r--r--gen/src/block.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/gen/src/block.rs b/gen/src/block.rs
index 96a9a6ee..4e6e6d2b 100644
--- a/gen/src/block.rs
+++ b/gen/src/block.rs
@@ -1,7 +1,7 @@
use proc_macro2::Ident;
#[derive(Copy, Clone, PartialEq, Debug)]
-pub enum Block<'a> {
+pub(crate) enum Block<'a> {
AnonymousNamespace,
Namespace(&'static str),
UserDefinedNamespace(&'a Ident),
@@ -10,7 +10,7 @@ pub enum Block<'a> {
}
impl<'a> Block<'a> {
- pub fn write_begin(self, out: &mut String) {
+ pub(crate) fn write_begin(self, out: &mut String) {
if let Block::InlineNamespace(_) = self {
out.push_str("inline ");
}
@@ -18,7 +18,7 @@ impl<'a> Block<'a> {
out.push_str(" {\n");
}
- pub fn write_end(self, out: &mut String) {
+ pub(crate) fn write_end(self, out: &mut String) {
out.push_str("} // ");
self.write_common(out);
out.push('\n');