diff --git a/Cargo.toml b/Cargo.toml index 645c17b..0ce7cd1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,7 +5,7 @@ version = "0.16.1" authors = ["Narazaki Shuji "] edition = "2021" default-run = "sat-bench" -rust-version = "1.65" +rust-version = "1.80" [dependencies] chrono ="^0.4" diff --git a/src/bin/sat-bench.rs b/src/bin/sat-bench.rs index 017acd0..f281906 100644 --- a/src/bin/sat-bench.rs +++ b/src/bin/sat-bench.rs @@ -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 {} @ {}{}",