mirror of https://github.com/sharkdp/fd.git
Clean up build.rs
This commit is contained in:
parent
4815ee416e
commit
a85f33cf98
10
build.rs
10
build.rs
|
@ -1,18 +1,18 @@
|
||||||
use std::fs;
|
use std::fs;
|
||||||
use std::io::{self, Write};
|
|
||||||
use std::process::exit;
|
|
||||||
|
|
||||||
use clap::Shell;
|
use clap::Shell;
|
||||||
|
|
||||||
include!("src/app.rs");
|
include!("src/app.rs");
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
match version_check::is_min_version("1.36") {
|
let min_version = "1.36";
|
||||||
|
|
||||||
|
match version_check::is_min_version(min_version) {
|
||||||
Some(true) => {}
|
Some(true) => {}
|
||||||
// rustc version too small or can't figure it out
|
// rustc version too small or can't figure it out
|
||||||
_ => {
|
_ => {
|
||||||
writeln!(&mut io::stderr(), "'fd' requires rustc >= 1.36").unwrap();
|
eprintln!("'fd' requires rustc >= {}", min_version);
|
||||||
exit(1);
|
std::process::exit(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue