diff --git a/src/core.rs b/src/core.rs index af3ea91..1550613 100644 --- a/src/core.rs +++ b/src/core.rs @@ -11,8 +11,8 @@ use crate::Group; use crate::Package; pub struct Pacdef { - pub(crate) args: ArgMatches, - pub(crate) groups: HashSet, + args: ArgMatches, + groups: HashSet, } impl Pacdef { @@ -20,7 +20,7 @@ impl Pacdef { Self { args, groups } } - pub(crate) fn install_packages(&self) { + fn install_packages(&self) { let mut to_install = ToDoPerBackend::new(); for mut b in Backends::iter() { @@ -69,7 +69,7 @@ impl Pacdef { } } - pub(crate) fn edit_group_files(&self, groups: &ArgMatches) -> Result<()> { + fn edit_group_files(&self, groups: &ArgMatches) -> Result<()> { let files: Vec<_> = groups .get_many::("group") .context("getting group from args")? @@ -96,7 +96,7 @@ impl Pacdef { } } - pub(crate) fn show_version(self) { + fn show_version(self) { println!("pacdef, version: {}", env!("CARGO_PKG_VERSION")) }