From 160e4d0b4caf8d9685705db62d81edfe93dcde43 Mon Sep 17 00:00:00 2001 From: steven-omaha <35634100+steven-omaha@users.noreply.github.com> Date: Tue, 10 Jan 2023 14:54:41 +0100 Subject: [PATCH] make some public functions private --- src/core.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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")) }