From 6d2fb4342dd192851582cb57b274465750c440ab Mon Sep 17 00:00:00 2001 From: trivernis Date: Sun, 4 Sep 2022 12:24:12 +0200 Subject: [PATCH] Remove context that isn't required Signed-off-by: trivernis --- src/operations/aur_install/aur_dependency_installation.rs | 3 +-- src/operations/aur_install/aur_package_install.rs | 1 - src/operations/aur_install/aur_review.rs | 1 - src/operations/aur_install/repo_dependency_installation.rs | 2 -- 4 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/operations/aur_install/aur_dependency_installation.rs b/src/operations/aur_install/aur_dependency_installation.rs index 1395137..8a1e1a1 100644 --- a/src/operations/aur_install/aur_dependency_installation.rs +++ b/src/operations/aur_install/aur_dependency_installation.rs @@ -15,7 +15,6 @@ use super::aur_package_install::AurPackageInstall; pub struct AurDependencyInstallation { pub options: crate::internal::structs::Options, - pub packages: Vec, pub dependencies: Vec, pub contexts: Vec, } @@ -44,11 +43,11 @@ impl AurDependencyInstallation { Ok(AurPackageInstall { options: self.options, - packages: self.packages, dependencies: self.dependencies, contexts: self.contexts, }) } + #[tracing::instrument(level = "trace", skip(self))] pub async fn install(&self, deps: Vec<&PackageInfo>) -> AppResult<()> { multi_progress!(); diff --git a/src/operations/aur_install/aur_package_install.rs b/src/operations/aur_install/aur_package_install.rs index 2a2b56b..1d6e642 100644 --- a/src/operations/aur_install/aur_package_install.rs +++ b/src/operations/aur_install/aur_package_install.rs @@ -11,7 +11,6 @@ use super::BuildContext; pub struct AurPackageInstall { pub options: Options, - pub packages: Vec, pub dependencies: Vec, pub contexts: Vec, } diff --git a/src/operations/aur_install/aur_review.rs b/src/operations/aur_install/aur_review.rs index 51ce613..57d1667 100644 --- a/src/operations/aur_install/aur_review.rs +++ b/src/operations/aur_install/aur_review.rs @@ -32,7 +32,6 @@ impl AurReview { } Ok(RepoDependencyInstallation { options: self.options, - packages: self.packages, dependencies: self.dependencies, contexts: self.contexts, }) diff --git a/src/operations/aur_install/repo_dependency_installation.rs b/src/operations/aur_install/repo_dependency_installation.rs index d9e8d26..99780b3 100644 --- a/src/operations/aur_install/repo_dependency_installation.rs +++ b/src/operations/aur_install/repo_dependency_installation.rs @@ -9,7 +9,6 @@ use super::{aur_dependency_installation::AurDependencyInstallation, BuildContext pub struct RepoDependencyInstallation { pub options: Options, - pub packages: Vec, pub dependencies: Vec, pub contexts: Vec, } @@ -34,7 +33,6 @@ impl RepoDependencyInstallation { } Ok(AurDependencyInstallation { options: self.options, - packages: self.packages, dependencies: self.dependencies, contexts: self.contexts, })