Skip to content

Commit

Permalink
fixup! chore: Remove no_btreemap_get_key_value and no_btreemap_remove…
Browse files Browse the repository at this point in the history
…_entry.
  • Loading branch information
osiewicz committed Sep 11, 2023
1 parent 83bdc5f commit 04f7758
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions build.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
use std::env;
use std::process::Command;
use std::str::{self, FromStr};

fn main() {
println!("cargo:rerun-if-changed=build.rs");
Expand All @@ -16,21 +14,4 @@ fn main() {
println!("cargo:rustc-cfg=limb_width_32");
}
}

let minor = match rustc_minor_version() {
Some(minor) => minor,
None => return,
};
}

fn rustc_minor_version() -> Option<u32> {
let rustc = env::var_os("RUSTC")?;
let output = Command::new(rustc).arg("--version").output().ok()?;
let version = str::from_utf8(&output.stdout).ok()?;
let mut pieces = version.split('.');
if pieces.next() != Some("rustc 1") {
return None;
}
let next = pieces.next()?;
u32::from_str(next).ok()
}

0 comments on commit 04f7758

Please sign in to comment.