From 7179fa0262c92b124e5d444754a572b2cecbf5cd Mon Sep 17 00:00:00 2001 From: fxqnlr Date: Mon, 30 Sep 2024 14:43:46 +0200 Subject: fix merge error --- src/packages.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/packages.rs') diff --git a/src/packages.rs b/src/packages.rs index 5fb08d0..8efc928 100644 --- a/src/packages.rs +++ b/src/packages.rs @@ -65,9 +65,9 @@ impl Manager { fn from_str(value: &str) -> Result { Ok(match value { - "fedora" => Box::new(Dnf), - "arch" => Box::new(Pacman), - "gentoo" => Box::new(Portage), + "fedora" => Self::Dnf, + "arch" => Self::Pacman, + "gentoo" => Self::Portage, _ => return Err(Error::Unsupported), }) } -- cgit v1.2.3