Remove redundant #[doc(hidden)] attributes (#331)

This commit is contained in:
est31 2019-09-09 20:04:47 +02:00 committed by Alex Crichton
parent d083e58357
commit 55ca6c5e30
3 changed files with 6 additions and 17 deletions

View file

@ -325,8 +325,7 @@ struct Table<'a> {
array: bool, array: bool,
} }
#[doc(hidden)] struct MapVisitor<'de, 'b> {
pub struct MapVisitor<'de, 'b> {
values: vec::IntoIter<TablePair<'de>>, values: vec::IntoIter<TablePair<'de>>,
next_value: Option<TablePair<'de>>, next_value: Option<TablePair<'de>>,
depth: usize, depth: usize,
@ -1883,10 +1882,7 @@ impl Error {
} }
} }
/// Do not call this method, it may be removed at any time, it's just an pub(crate) fn add_key_context(&mut self, key: &str) {
/// internal implementation detail.
#[doc(hidden)]
pub fn add_key_context(&mut self, key: &str) {
self.inner.key.insert(0, key.to_string()); self.inner.key.insert(0, key.to_string());
} }

View file

@ -151,7 +151,6 @@ pub enum Error {
} }
#[derive(Debug, Default, Clone)] #[derive(Debug, Default, Clone)]
#[doc(hidden)]
/// Internal place for holding array setings /// Internal place for holding array setings
struct ArraySettings { struct ArraySettings {
indent: usize, indent: usize,
@ -167,7 +166,6 @@ impl ArraySettings {
} }
} }
#[doc(hidden)]
#[derive(Debug, Default, Clone)] #[derive(Debug, Default, Clone)]
/// String settings /// String settings
struct StringSettings { struct StringSettings {
@ -182,7 +180,6 @@ impl StringSettings {
} }
#[derive(Debug, Default, Clone)] #[derive(Debug, Default, Clone)]
#[doc(hidden)]
/// Internal struct for holding serialization settings /// Internal struct for holding serialization settings
struct Settings { struct Settings {
array: Option<ArraySettings>, array: Option<ArraySettings>,

View file

@ -1,14 +1,10 @@
use serde::{de, ser}; use serde::{de, ser};
use std::fmt; use std::fmt;
#[doc(hidden)] pub(crate) const NAME: &str = "$__toml_private_Spanned";
pub const NAME: &str = "$__toml_private_Spanned"; pub(crate) const START: &str = "$__toml_private_start";
#[doc(hidden)] pub(crate) const END: &str = "$__toml_private_end";
pub const START: &str = "$__toml_private_start"; pub(crate) const VALUE: &str = "$__toml_private_value";
#[doc(hidden)]
pub const END: &str = "$__toml_private_end";
#[doc(hidden)]
pub const VALUE: &str = "$__toml_private_value";
/// A spanned value, indicating the range at which it is defined in the source. /// A spanned value, indicating the range at which it is defined in the source.
/// ///