Skip to content

Commit

Permalink
Fix hostname handling
Browse files Browse the repository at this point in the history
  • Loading branch information
shnarazk committed Aug 11, 2024
1 parent b35f030 commit 008077a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ version = "0.16.1"
authors = ["Narazaki Shuji <shujinarazaki@protonmail.com>"]
edition = "2021"
default-run = "sat-bench"
rust-version = "1.65"
rust-version = "1.80"

[dependencies]
chrono ="^0.4"
Expand Down
2 changes: 1 addition & 1 deletion src/bin/sat-bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ fn main() {
.output()
.expect("failed to execute 'hostname'")
.stdout; */
let h = String::from_utf8_lossy(&host[..host.len() - 1]);
let h = String::from_utf8_lossy(host.trim_ascii_end());
if config.solver_opts.is_empty() {
println!(
"# {}, timeout:{} on {} @ {}{}",
Expand Down

0 comments on commit 008077a

Please sign in to comment.