Skip to content

Commit 8ff96c1

Browse files
committed
style: Fix item visibility
1 parent 78b1ba5 commit 8ff96c1

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/error.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ use std::result;
55
use serde::de;
66
use serde::ser;
77

8+
#[allow(unnameable_types)] // Unsure if/how to expose this
89
#[derive(Debug)]
910
pub enum Unexpected {
1011
Bool(bool),

src/file/source/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ where
1717
) -> Result<FileSourceResult, Box<dyn Error + Send + Sync>>;
1818
}
1919

20+
#[allow(unnameable_types)] // Unsure if/how to expose this
2021
pub struct FileSourceResult {
2122
pub(crate) uri: Option<String>,
2223
pub(crate) content: String,

src/ser.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use crate::value::{Value, ValueKind};
88
use crate::Config;
99

1010
#[derive(Default, Debug)]
11-
pub struct ConfigSerializer {
11+
pub(crate) struct ConfigSerializer {
1212
keys: Vec<SerKey>,
1313
pub output: Config,
1414
}
@@ -31,7 +31,7 @@ pub(crate) enum Unreachable {}
3131
///
3232
/// Existence of this wrapper implies that `.0.keys.last()` is
3333
/// `Some(SerKey::Seq(next_index))`.
34-
pub struct SeqSerializer<'a>(&'a mut ConfigSerializer);
34+
pub(crate) struct SeqSerializer<'a>(&'a mut ConfigSerializer);
3535

3636
impl ConfigSerializer {
3737
fn serialize_primitive<T>(&mut self, value: T) -> Result<()>

0 commit comments

Comments
 (0)