Skip to content

Commit f1a0eb5

Browse files
committed
Update build.rs with requirements for new Rust
1 parent cf81aa1 commit f1a0eb5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ fn bootstrap(libc_dir: &Path) {
8181
fn configure(libc_dir: &Path) {
8282
println!("Configuring avr-libc");
8383

84-
let host = env::var("HOST").unwrap();;
84+
let host = env::var("HOST").unwrap();
8585

8686
let mut cmd = Command::new("sh");
8787
cmd.arg("configure");
@@ -168,7 +168,7 @@ fn base_headers(libc_dir: &Path) -> Vec<PathBuf> {
168168
}
169169

170170
fn mcu_define_name() -> Option<&'static str> {
171-
MCU.as_ref().map(|mcu| mcu.c_preprocessor_name)
171+
MCU.as_ref().map(|mcu| &mcu.c_preprocessor_name[..])
172172
}
173173

174174
fn generate_bindings(libc_dir: &Path) {

0 commit comments

Comments
 (0)