[meta] Add more pub(crate) definitions.

This commit is contained in:
Benjamin Bouvier
2019-10-28 18:13:25 +01:00
parent 06b1817d89
commit 5889dd2c64
17 changed files with 86 additions and 93 deletions

View File

@@ -35,7 +35,7 @@ macro_rules! fmtln {
};
}
pub struct Formatter {
pub(crate) struct Formatter {
indent: usize,
lines: Vec<String>,
}
@@ -260,7 +260,7 @@ fn parse_multiline(s: &str) -> Vec<String> {
/// Note that this class is ignorant of Rust types, and considers two fields
/// with the same name to be equivalent. BTreeMap/BTreeSet are used to
/// represent the arms in order to make the order deterministic.
pub struct Match {
pub(crate) struct Match {
expr: String,
arms: BTreeMap<(Vec<String>, String), BTreeSet<String>>,
/// The clause for the placeholder pattern _.