Remove all pub.

This commit is contained in:
Tom Alexander
2023-09-11 13:11:08 -04:00
parent a74319d381
commit 7650a9edff
71 changed files with 493 additions and 493 deletions

View File

@@ -69,13 +69,13 @@ use crate::types::Verbatim;
use crate::types::VerseBlock;
#[derive(Debug)]
pub enum DiffEntry<'s> {
enum DiffEntry<'s> {
DiffResult(DiffResult<'s>),
DiffLayer(DiffLayer<'s>),
}
#[derive(Debug)]
pub struct DiffResult<'s> {
struct DiffResult<'s> {
status: DiffStatus,
name: String,
message: Option<String>,
@@ -86,13 +86,13 @@ pub struct DiffResult<'s> {
}
#[derive(Debug, PartialEq)]
pub enum DiffStatus {
enum DiffStatus {
Good,
Bad,
}
#[derive(Debug)]
pub struct DiffLayer<'s> {
struct DiffLayer<'s> {
name: String,
children: Vec<DiffEntry<'s>>,
}
@@ -126,11 +126,11 @@ impl<'s> DiffEntry<'s> {
}
}
pub fn is_bad(&self) -> bool {
fn is_bad(&self) -> bool {
self.is_immediately_bad() || self.has_bad_children()
}
pub fn print(&self, original_document: &str) -> Result<(), Box<dyn std::error::Error>> {
fn print(&self, original_document: &str) -> Result<(), Box<dyn std::error::Error>> {
self.print_indented(0, original_document)
}
@@ -374,7 +374,7 @@ fn compare_object<'s>(
}
}
pub fn compare_document<'s>(
fn compare_document<'s>(
emacs: &'s Token<'s>,
rust: &'s Document<'s>,
) -> Result<DiffEntry<'s>, Box<dyn std::error::Error>> {