[pbs-devel] [PATCH proxmox 5/8] apt: sources_parser: remove needless borrow
Maximiliano Sandoval
m.sandoval at proxmox.com
Mon Aug 26 14:15:33 CEST 2024
Signed-off-by: Maximiliano Sandoval <m.sandoval at proxmox.com>
---
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<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;
}
--
2.39.2
More information about the pbs-devel
mailing list