forked from Proxmox/proxmox
apt: sources_parser: remove needless borrow
Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
This commit is contained in:
parent
f8f57540c6
commit
e60a53d80b
@ -108,7 +108,7 @@ impl<R: BufRead> APTSourcesFileParser<R> {
|
|||||||
}
|
}
|
||||||
let mut types = Vec::<APTRepositoryPackageType>::new();
|
let mut types = Vec::<APTRepositoryPackageType>::new();
|
||||||
for package_type in values {
|
for package_type in values {
|
||||||
types.push((&package_type[..]).parse()?);
|
types.push(package_type[..].parse()?);
|
||||||
}
|
}
|
||||||
repo.types = types;
|
repo.types = types;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user