From 6ff36feac9fdff4917c0a9ad1d9a33f98af4f4e5 Mon Sep 17 00:00:00 2001 From: Nicolas Patry Date: Mon, 29 Jan 2024 12:21:49 +0100 Subject: [PATCH] Clippy. --- launcher/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/launcher/src/main.rs b/launcher/src/main.rs index 7d041b03..054e546c 100644 --- a/launcher/src/main.rs +++ b/launcher/src/main.rs @@ -988,8 +988,8 @@ fn compute_type(num_shard: usize) -> Option { .output() .ok()?; let output = String::from_utf8(output.stdout).ok()?; - let fullname = output.split("\n").nth(1)?; - let cardname = fullname.replace(" ", "-").to_lowercase(); + let fullname = output.split('\n').nth(1)?; + let cardname = fullname.replace(' ', "-").to_lowercase(); let compute_type = format!("{num_shard}-{cardname}"); Some(compute_type) }