From 712d2f3a5f349b982e3db31dd263537705fd3be7 Mon Sep 17 00:00:00 2001 From: Michael Davis Date: Sun, 22 May 2022 16:03:44 -0500 Subject: [PATCH] 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 --- helix-term/Cargo.toml | 2 +- helix-view/src/handlers/dap.rs | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/helix-term/Cargo.toml b/helix-term/Cargo.toml index 1a74dc61d4b7..17fe1886aff9 100644 --- a/helix-term/Cargo.toml +++ b/helix-term/Cargo.toml @@ -10,7 +10,7 @@ repository = "https://github.com/helix-editor/helix" homepage = "https://helix-editor.com" include = ["src/**/*", "README.md"] default-run = "hx" -metadata.msrv = "1.60.0" +metadata.msrv = "1.57.0" [package.metadata.nix] build = true diff --git a/helix-view/src/handlers/dap.rs b/helix-view/src/handlers/dap.rs index c7d3758d6689..fe2beb4e674f 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 pretty-print with standard format when MSRV + // is raised to 1.60.0 + e => panic!("Error to start debug console: {:?}", e), }) } else { std::process::Command::new("tmux")