]> git.proxmox.com Git - proxmox.git/commitdiff
apt: sources_parser: remove needless borrow
authorMaximiliano Sandoval <m.sandoval@proxmox.com>
Mon, 26 Aug 2024 12:15:33 +0000 (14:15 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 28 Aug 2024 11:09:15 +0000 (13:09 +0200)
Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
proxmox-apt/src/repositories/file/sources_parser.rs

index 017162bb122cc64caf2ca63365d970769e6b3baf..6d1eeb34fe6cfc4604ea69012983df007b950dcf 100644 (file)
@@ -108,7 +108,7 @@ impl<R: BufRead> APTSourcesFileParser<R> {
                         }
                         let mut types = Vec::<APTRepositoryPackageType>::new();
                         for package_type in values {
-                            types.push((&package_type[..]).parse()?);
+                            types.push(package_type[..].parse()?);
                         }
                         repo.types = types;
                     }