Skip to content

Commit

Permalink
Remove dependency is-terminal from talpid-openvpn
Browse files Browse the repository at this point in the history
`std::io::IsTerminal` has been since Rust `1.70`, which allows us to
migrate away from `is_terminal::IsTerminal`.
  • Loading branch information
MarkusPettersson98 committed Oct 4, 2023
1 parent 53b7f1c commit fe572e8
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

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

1 change: 0 additions & 1 deletion talpid-openvpn/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ async-trait = "0.1"
duct = "0.13"
err-derive = { workspace = true }
futures = "0.3.15"
is-terminal = "0.4.2"
once_cell = "1.13"
log = { workspace = true }
os_pipe = "1.1.4"
Expand Down
2 changes: 1 addition & 1 deletion talpid-openvpn/src/process/openvpn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ impl OpenVpnProcHandle {
/// Configures the expression to run OpenVPN in a way compatible with this handle
/// and spawns it. Returns the handle.
pub fn new(mut cmd: duct::Expression) -> io::Result<Self> {
use is_terminal::IsTerminal;
use std::io::IsTerminal;

if !std::io::stdout().is_terminal() {
cmd = cmd.stdout_null();
Expand Down

0 comments on commit fe572e8

Please sign in to comment.