Skip to content

Commit

Permalink
lower MSRV to 1.57.0
Browse files Browse the repository at this point in the history
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 helix-editor#2460
  • Loading branch information
the-mikedavis committed May 22, 2022
1 parent c2fae80 commit 712d2f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion helix-term/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion helix-view/src/handlers/dap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 712d2f3

Please sign in to comment.