fix: clippy

This commit is contained in:
Ilya Zlobintsev
2026-07-24 23:43:00 +03:00
parent 1f97aa6c64
commit 806d0f10dd
+2 -2
View File
@@ -240,8 +240,8 @@ pub async fn detach(ctx: CliContext<'_>) -> Result<()> {
.gpu_id
.as_deref()
.context("`--gpu-id` must be passed explicitly for reattaching")?;
let name = ctx.name_for_id(&id).await?;
ctx.client.detach(&id).await?;
let name = ctx.name_for_id(id).await?;
ctx.client.detach(id).await?;
if let Some(name) = name {
println!("Detached GPU '{id}' ({name})");