Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

fix(cua-cli): gate agents_login Pty::output to Unix so Windows clippy passes (#5449)

Francesco Bonaccieb679b9e0211
diff --git a/libs/cua/crates/cua-cli/tests/agents_login.rs b/libs/cua/crates/cua-cli/tests/agents_login.rs
index d3d2878d53..3401dbc328 100644
--- a/libs/cua/crates/cua-cli/tests/agents_login.rs
+++ b/libs/cua/crates/cua-cli/tests/agents_login.rs
@@ -603,7 +603,9 @@ impl Pty {
}
}
- /// Everything printed so far.
+ /// Everything printed so far. Only the Unix tests read it, so Windows clippy
+ /// (`-D warnings`) would flag it as dead code.
+ #[cfg(unix)]
fn output(&self) -> String {
self.buf.lock().unwrap().clone()
}