chore: update Rust to 2024 edition (#2066)

This commit is contained in:
Luna Yao
2026-04-09 18:22:12 +02:00
committed by GitHub
parent a8feb9ac2b
commit a879dd1b14
158 changed files with 1327 additions and 1231 deletions
+4 -6
View File
@@ -100,12 +100,10 @@ fn get_instance_service(
if let Some(api::instance::instance_identifier::Selector::InstanceSelector(
selector,
)) = selector
&& let Some(name) = selector.name.as_ref()
&& v.get_inst_name() != *name
{
if let Some(name) = selector.name.as_ref() {
if v.get_inst_name() != *name {
return false;
}
}
return false;
}
true
})
@@ -118,7 +116,7 @@ fn get_instance_service(
return Err(anyhow::anyhow!(
"{} instances match the selector, please specify the instance ID",
ids.len()
))
));
}
}
};