Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
proxmox-async = "0.4"
proxmox-openid = "0.9.0"
proxmox-async = "0.4"
proxmox-openid = "0.9.0"
- if let Some(file) = files.iter_mut().find(|file| file.path == path) {
+ if let Some(file) = files.iter_mut().find(|file| file.path.as_ref() == Some(&path)) {
file.repositories.push(repo);
file.write()?;
file.repositories.push(repo);
file.write()?;
bail!("unable to parse file {} - {}", error.path, error.error);
}
bail!("unable to parse file {} - {}", error.path, error.error);
}
- if let Some(file) = files.iter_mut().find(|file| file.path == path) {
+ if let Some(file) = files.iter_mut().find(|file| file.path.as_ref() == Some(&path)) {
if let Some(repo) = file.repositories.get_mut(index) {
if let Some(enabled) = enabled {
repo.set_enabled(enabled);
if let Some(repo) = file.repositories.get_mut(index) {
if let Some(enabled) = enabled {
repo.set_enabled(enabled);