diff options
| author | Caleb Cartwright <caleb.cartwright@outlook.com> | 2021-12-27 17:42:48 -0600 |
|---|---|---|
| committer | Caleb Cartwright <calebcartwright@users.noreply.github.com> | 2021-12-27 18:16:04 -0600 |
| commit | e8afb62c71f5c789c554e23c835efc019cb42685 (patch) | |
| tree | d6c5b9b682c7d0ebd1c57a7050868e14e60b32d6 /src/rustfmt_diff.rs | |
| parent | 76eb077fb298a01137c878a9f10854b44c5edf37 (diff) | |
chore: reduce some vis. for updated unreachable_pub lint
Diffstat (limited to 'src/rustfmt_diff.rs')
| -rw-r--r-- | src/rustfmt_diff.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/rustfmt_diff.rs b/src/rustfmt_diff.rs index a394ce07398..1724a0f87bf 100644 --- a/src/rustfmt_diff.rs +++ b/src/rustfmt_diff.rs @@ -6,20 +6,20 @@ use std::io::Write; use crate::config::{Color, Config, Verbosity}; #[derive(Debug, PartialEq)] -pub enum DiffLine { +pub(crate) enum DiffLine { Context(String), Expected(String), Resulting(String), } #[derive(Debug, PartialEq)] -pub struct Mismatch { +pub(crate) struct Mismatch { /// The line number in the formatted version. - pub line_number: u32, + pub(crate) line_number: u32, /// The line number in the original version. - pub line_number_orig: u32, + pub(crate) line_number_orig: u32, /// The set of lines (context and old/new) in the mismatch. - pub lines: Vec<DiffLine>, + pub(crate) lines: Vec<DiffLine>, } impl Mismatch { |
