Skip to content

Commit 75e811d

Browse files
notriddleJoshua Nelson
authored and
Joshua Nelson
committed
Remove pointless file read
1 parent 85a84e8 commit 75e811d

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

build.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,7 @@ fn compile_sass() {
5252
}
5353

5454
fn copy_js() {
55-
use std::io::Read;
56-
let mut javascript = String::new();
5755
let source_path = Path::new(concat!(env!("CARGO_MANIFEST_DIR"), "/templates/menu.js"));
5856
let dest_path = Path::new(&env::var("OUT_DIR").unwrap()).join("menu.js");
59-
File::open(&source_path)
60-
.expect("open templates/menu.js")
61-
.read_to_string(&mut javascript)
62-
.expect("read templates/menu.js");
6357
fs::copy(&source_path, &dest_path).expect("copy template/menu.js to target");
6458
}

0 commit comments

Comments
 (0)