mirror of
https://github.com/ilya-zlobintsev/LACT.git
synced 2026-08-17 16:34:54 -05:00
fix: clippy
This commit is contained in:
@@ -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})");
|
||||
|
||||
Reference in New Issue
Block a user