make some public functions private

This commit is contained in:
Dr. Matthias Ratajczak
2023-01-10 14:54:41 +01:00
parent 60b6df1a86
commit 9bced6f8d8
+5 -5
View File
@@ -11,8 +11,8 @@ use crate::Group;
use crate::Package; use crate::Package;
pub struct Pacdef { pub struct Pacdef {
pub(crate) args: ArgMatches, args: ArgMatches,
pub(crate) groups: HashSet<Group>, groups: HashSet<Group>,
} }
impl Pacdef { impl Pacdef {
@@ -20,7 +20,7 @@ impl Pacdef {
Self { args, groups } Self { args, groups }
} }
pub(crate) fn install_packages(&self) { fn install_packages(&self) {
let mut to_install = ToDoPerBackend::new(); let mut to_install = ToDoPerBackend::new();
for mut b in Backends::iter() { 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 let files: Vec<_> = groups
.get_many::<String>("group") .get_many::<String>("group")
.context("getting group from args")? .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")) println!("pacdef, version: {}", env!("CARGO_PKG_VERSION"))
} }