diff options
author | Michael Davis | 2022-05-23 00:13:10 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2022-05-23 16:05:19 +0000 |
commit | 89c0998aee1717dff8b6afe712e52b576c496257 (patch) | |
tree | 645bac00ad692eab9202963405493423afb2615a | |
parent | 92df5a542509e49a5ff71087b65fca2a17d5d25e (diff) |
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.
-rw-r--r-- | .github/workflows/msrv-rust-toolchain.toml | 2 | ||||
-rw-r--r-- | 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") |