lower MSRV to 1.57.0

This line uses the Display trait for io::ErrorKind which was
stabilized in Rust 1.60.0. We can set MSRV all the way back to
1.57.0 by replacing it with a pretty-print.

Closes #2460.
This commit is contained in:
Michael Davis 2022-05-22 19:13:10 -05:00 committed by Blaž Hrastnik
parent 92df5a5425
commit 89c0998aee
2 changed files with 4 additions and 2 deletions

View File

@ -1,3 +1,3 @@
[toolchain] [toolchain]
channel = "1.60.0" channel = "1.57.0"
components = ["rustfmt", "rust-src"] components = ["rustfmt", "rust-src"]

View File

@ -302,7 +302,9 @@ pub async fn handle_debugger_message(&mut self, payload: helix_dap::Payload) ->
.arg(arguments.args.join(" ")) .arg(arguments.args.join(" "))
.spawn() .spawn()
.unwrap(), .unwrap(),
e => panic!("Error to start debug console: {}", e), // TODO replace the pretty print {:?} with a regular format {}
// when the MSRV is raised to 1.60.0
e => panic!("Error to start debug console: {:?}", e),
}) })
} else { } else {
std::process::Command::new("tmux") std::process::Command::new("tmux")