aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorest31 <est31@users.noreply.github.com>2019-09-09 20:04:47 +0200
committerAlex Crichton <alex@alexcrichton.com>2019-09-09 13:04:47 -0500
commit029908cfa6507ca7db0f74fe46854cc0043fe806 (patch)
treed41c529dab34378db19f143bbae1bc6bf31692c9
parent95d419ba990920dfdc30b7b88d6df1c0d2d5737f (diff)
downloadmilf-rs-029908cfa6507ca7db0f74fe46854cc0043fe806.tar.gz
milf-rs-029908cfa6507ca7db0f74fe46854cc0043fe806.zip
Remove redundant #[doc(hidden)] attributes (#331)
-rw-r--r--src/de.rs8
-rw-r--r--src/ser.rs3
-rw-r--r--src/spanned.rs12
3 files changed, 6 insertions, 17 deletions
diff --git a/src/de.rs b/src/de.rs
index 03372c6..439a48a 100644
--- a/src/de.rs
+++ b/src/de.rs
@@ -325,8 +325,7 @@ struct Table<'a> {
array: bool,
}
-#[doc(hidden)]
-pub struct MapVisitor<'de, 'b> {
+struct MapVisitor<'de, 'b> {
values: vec::IntoIter<TablePair<'de>>,
next_value: Option<TablePair<'de>>,
depth: usize,
@@ -1883,10 +1882,7 @@ impl Error {
}
}
- /// Do not call this method, it may be removed at any time, it's just an
- /// internal implementation detail.
- #[doc(hidden)]
- pub fn add_key_context(&mut self, key: &str) {
+ pub(crate) fn add_key_context(&mut self, key: &str) {
self.inner.key.insert(0, key.to_string());
}
diff --git a/src/ser.rs b/src/ser.rs
index 039c1f3..0734803 100644
--- a/src/ser.rs
+++ b/src/ser.rs
@@ -151,7 +151,6 @@ pub enum Error {
}
#[derive(Debug, Default, Clone)]
-#[doc(hidden)]
/// Internal place for holding array setings
struct ArraySettings {
indent: usize,
@@ -167,7 +166,6 @@ impl ArraySettings {
}
}
-#[doc(hidden)]
#[derive(Debug, Default, Clone)]
/// String settings
struct StringSettings {
@@ -182,7 +180,6 @@ impl StringSettings {
}
#[derive(Debug, Default, Clone)]
-#[doc(hidden)]
/// Internal struct for holding serialization settings
struct Settings {
array: Option<ArraySettings>,
diff --git a/src/spanned.rs b/src/spanned.rs
index f2fc180..1538f96 100644
--- a/src/spanned.rs
+++ b/src/spanned.rs
@@ -1,14 +1,10 @@
use serde::{de, ser};
use std::fmt;
-#[doc(hidden)]
-pub const NAME: &str = "$__toml_private_Spanned";
-#[doc(hidden)]
-pub const START: &str = "$__toml_private_start";
-#[doc(hidden)]
-pub const END: &str = "$__toml_private_end";
-#[doc(hidden)]
-pub const VALUE: &str = "$__toml_private_value";
+pub(crate) const NAME: &str = "$__toml_private_Spanned";
+pub(crate) const START: &str = "$__toml_private_start";
+pub(crate) const END: &str = "$__toml_private_end";
+pub(crate) const VALUE: &str = "$__toml_private_value";
/// A spanned value, indicating the range at which it is defined in the source.
///