From 89c0998aee1717dff8b6afe712e52b576c496257 Mon Sep 17 00:00:00 2001 From: Michael Davis Date: Sun, 22 May 2022 19:13:10 -0500 Subject: 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. --- .github/workflows/msrv-rust-toolchain.toml | 2 +- helix-view/src/handlers/dap.rs | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/msrv-rust-toolchain.toml b/.github/workflows/msrv-rust-toolchain.toml index 958edb45..ece2fa76 100644 --- a/.github/workflows/msrv-rust-toolchain.toml +++ b/.github/workflows/msrv-rust-toolchain.toml @@ -1,3 +1,3 @@ [toolchain] -channel = "1.60.0" +channel = "1.57.0" components = ["rustfmt", "rust-src"] diff --git a/helix-view/src/handlers/dap.rs b/helix-view/src/handlers/dap.rs index c7d3758d..2ea21f62 100644 --- a/helix-view/src/handlers/dap.rs +++ b/helix-view/src/handlers/dap.rs @@ -302,7 +302,9 @@ impl Editor { .arg(arguments.args.join(" ")) .spawn() .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 { std::process::Command::new("tmux") -- cgit v1.2.3-70-g09d2