Skip to content

Commit e84e4ae

Browse files
committed
CI fixes
1 parent 5401120 commit e84e4ae

File tree

1 file changed

+3
-1
lines changed
  • devolutions-agent-updater/src

1 file changed

+3
-1
lines changed

devolutions-agent-updater/src/main.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ use devolutions_agent::updater::{self, AgentServiceState};
3232
fn main() {
3333
#[cfg(not(windows))]
3434
{
35-
eprintln!("devolutions-agent-updater is only supported on Windows");
35+
use std::io::Write as _;
36+
let _ = writeln!(std::io::stderr(), "devolutions-agent-updater is only supported on Windows");
3637
std::process::exit(1);
3738
}
3839

@@ -236,6 +237,7 @@ fn write_log(path: &str, msg: &str) {
236237
}
237238
}
238239

240+
#[cfg(windows)]
239241
fn write_to_stderr(msg: &str) -> std::io::Result<()> {
240242
use std::io::Write as _;
241243
writeln!(std::io::stderr(), "{msg}")

0 commit comments

Comments
 (0)