chore: reduce MSRV to 1.62.0

This commit is contained in:
Narawit Rakket
2022-08-12 17:20:17 +07:00
committed by Abin Simon
parent 8c1089ed57
commit 31d3701cae
2 changed files with 3 additions and 3 deletions

View File

@@ -6,7 +6,7 @@ env:
PROJECT_NAME: lsd
PROJECT_DESC: "An ls command with a lot of pretty colors."
PROJECT_AUTH: "Peltoche <peltoche@halium.fr>"
RUST_MIN_SRV: "1.62.1"
RUST_MIN_SRV: "1.62.0"
on: [push, pull_request]

View File

@@ -18,11 +18,11 @@ use std::process::exit;
include!("src/app.rs");
fn main() {
match version_check::is_min_version("1.62.1") {
match version_check::is_min_version("1.62.0") {
Some(true) => {}
// rustc version too small or can't figure it out
_ => {
writeln!(&mut io::stderr(), "'lsd' requires rustc >= 1.62.1").unwrap();
writeln!(&mut io::stderr(), "'lsd' requires rustc >= 1.62.0").unwrap();
exit(1);
}
}