Skip to content

Commit

Permalink
fix(tui): fix windows compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-olszewski committed Jul 25, 2024
1 parent 41d626d commit e11612b
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
16 changes: 16 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions crates/turborepo-ui/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,6 @@ turborepo-ci = { workspace = true }
turborepo-vt100 = { workspace = true }
which = { workspace = true }
winapi = "0.3.9"

[target."cfg(windows)".dependencies]
clipboard-win = "5.3.1"
5 changes: 2 additions & 3 deletions crates/turborepo-ui/src/tui/clipboard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,8 @@ fn copy_impl(s: &str, provider: &Provider) -> std::io::Result<()> {
}

#[cfg(windows)]
Provider::Win => {
clipboard_win::set_clipboard_string(s).map_err(|e| anyhow::Error::msg(e.to_string()))?
}
Provider::Win => clipboard_win::set_clipboard_string(s)
.map_err(|e| std::io::Error::other(e.to_string()))?,

Provider::NoOp => (),
};
Expand Down

0 comments on commit e11612b

Please sign in to comment.