diff --git a/Cargo.lock b/Cargo.lock index f4c9b5383a..9c975bcce8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -69,7 +69,7 @@ checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" [[package]] name = "baz-difftastic" -version = "0.53.3" +version = "0.53.4" dependencies = [ "aho-corasick", "assert_cmd", diff --git a/Cargo.toml b/Cargo.toml index 0ba23c56cc..298490c789 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ description = "A structural diff that understands syntax. Based on difftastic, t repository = "https://github.com/baz-scm/difftastic" homepage = "https://baz.co/" license = "GPL-2.0" -version = "0.53.3" +version = "0.53.4" authors = ["Nimrod Kor "] keywords = ["diff", "syntax"] categories = ["development-tools", "command-line-utilities", "parser-implementations"] diff --git a/src/files.rs b/src/files.rs index b4146a75d9..1b57376900 100644 --- a/src/files.rs +++ b/src/files.rs @@ -14,7 +14,7 @@ use rustc_hash::FxHashSet; use crate::exit_codes::EXIT_BAD_ARGUMENTS; use crate::options::FileArgument; -pub(crate) fn read_file_or_die(path: &FileArgument) -> Vec { +pub fn read_file_or_die(path: &FileArgument) -> Vec { match read_file_arg(path) { Ok(src) => src, Err(e) => { diff --git a/src/options.rs b/src/options.rs index dce08eca4c..9b55ed1214 100644 --- a/src/options.rs +++ b/src/options.rs @@ -88,7 +88,7 @@ pub(crate) enum DisplayMode { } #[derive(Eq, PartialEq, Debug)] -pub(crate) enum FileArgument { +pub enum FileArgument { NamedPath(PathBuf), Stdin, DevNull,