Skip to content

Commit 092b6c3

Browse files
committed
make modules private that have no public items
1 parent 4fe30a6 commit 092b6c3

File tree

5 files changed

+18
-18
lines changed

5 files changed

+18
-18
lines changed

src/core/mod.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
* SPDX-License-Identifier: Apache-2.0 OR MIT
55
*/
66

7-
pub mod address;
8-
pub mod body;
9-
pub mod builder;
10-
pub mod header;
7+
mod address;
8+
mod body;
9+
mod builder;
10+
mod header;
1111
mod html;
12-
pub mod message;
12+
mod message;
1313
#[cfg(feature = "rkyv")]
1414
pub mod rkyv;
1515

src/decoders/charsets/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
*/
66

77
pub mod map;
8-
pub mod multi_byte;
9-
pub mod single_byte;
10-
pub mod utf;
8+
mod multi_byte;
9+
mod single_byte;
10+
mod utf;
1111

1212
pub type DecoderFnc = fn(&[u8]) -> String;
1313

src/decoders/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use crate::parsers::MessageStream;
1010

1111
pub mod base64;
1212
pub mod charsets;
13-
pub mod encoded_word;
13+
mod encoded_word;
1414
pub mod hex;
1515
pub mod html;
1616
pub mod quoted_printable;

src/parsers/fields/mod.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
*/
66

77
pub mod address;
8-
pub mod content_type;
8+
mod content_type;
99
pub mod date;
10-
pub mod id;
11-
pub mod list;
12-
pub mod raw;
13-
pub mod received;
10+
mod id;
11+
mod list;
12+
mod raw;
13+
mod received;
1414
pub mod thread;
15-
pub mod unstructured;
15+
mod unstructured;
1616

1717
#[cfg(test)]
1818
use serde::{Deserialize, Serialize};

src/parsers/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
use std::{iter::Peekable, ops::Range, slice::Iter};
88

99
pub mod fields;
10-
pub mod header;
11-
pub mod message;
12-
pub mod mime;
10+
mod header;
11+
mod message;
12+
mod mime;
1313
pub mod preview;
1414

1515
pub struct MessageStream<'x> {

0 commit comments

Comments
 (0)