apt: sources_parser: remove needless borrow

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
This commit is contained in:
Maximiliano Sandoval 2024-08-26 14:15:33 +02:00 committed by Wolfgang Bumiller
parent f8f57540c6
commit e60a53d80b

View 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;
}