Skip to content

Commit dadc092

Browse files
committed
Fix clippy
Signed-off-by: Maksym Pavlenko <[email protected]>
1 parent 036be30 commit dadc092

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

crates/runc-shim/src/service.rs

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,16 +69,13 @@ impl Shim for Service {
6969
async fn start_shim(&mut self, opts: StartOpts) -> containerd_shim::Result<String> {
7070
let mut grouping = opts.id.clone();
7171
let spec = read_spec("").await?;
72-
match spec.annotations() {
73-
Some(annotations) => {
74-
for &label in GROUP_LABELS.iter() {
75-
if let Some(value) = annotations.get(label) {
76-
grouping = value.to_string();
77-
break;
78-
}
72+
if let Some(annotations) = spec.annotations() {
73+
for &label in GROUP_LABELS.iter() {
74+
if let Some(value) = annotations.get(label) {
75+
grouping = value.to_string();
76+
break;
7977
}
8078
}
81-
None => {}
8279
}
8380
#[cfg(not(target_os = "linux"))]
8481
let thp_disabled = String::new();

0 commit comments

Comments
 (0)