fix: explicitly detach Python runtime tasks for Clippy

This commit is contained in:
Gatefixer
2026-09-24 03:03:21 +00:00
parent 155a4e75c1
commit 0f34790839
+2 -2
View File
@@ -210,10 +210,10 @@ where
};
match runtime::Handle::try_current() {
Ok(handle) => {
let _ = handle.spawn(task);
drop(handle.spawn(task));
}
Err(_) => {
let _ = get_runtime().spawn(task);
drop(get_runtime().spawn(task));
}
}
}