runtime-rs: Fix for-loops-over-fallibles

Clippy complains about:
```
error: for loop over a `&Result`. This is more readably written as an `if let` statement
  --> crates/hypervisor/src/firecracker/fc_api.rs:99:22
   |
99 |         for param in &kernel_params.to_string() {
   |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^
```

Signed-off-by: stevenhorsman <steven@uk.ibm.com>
This commit is contained in:
stevenhorsman
2025-01-29 11:19:21 +00:00
parent c332a91ef8
commit 53bcb0b108

View File

@@ -96,7 +96,7 @@ impl FcInner {
));
let mut parameters = String::new().to_owned();
for param in &kernel_params.to_string() {
if let Ok(param) = &kernel_params.to_string() {
parameters.push_str(&param.to_string());
}