From e60a53d80b8b3b339f088c72f08066fe57ab6243 Mon Sep 17 00:00:00 2001 From: Maximiliano Sandoval Date: Mon, 26 Aug 2024 14:15:33 +0200 Subject: [PATCH] apt: sources_parser: remove needless borrow Signed-off-by: Maximiliano Sandoval --- proxmox-apt/src/repositories/file/sources_parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxmox-apt/src/repositories/file/sources_parser.rs b/proxmox-apt/src/repositories/file/sources_parser.rs index 017162bb..6d1eeb34 100644 --- a/proxmox-apt/src/repositories/file/sources_parser.rs +++ b/proxmox-apt/src/repositories/file/sources_parser.rs @@ -108,7 +108,7 @@ impl APTSourcesFileParser { } let mut types = Vec::::new(); for package_type in values { - types.push((&package_type[..]).parse()?); + types.push(package_type[..].parse()?); } repo.types = types; }