We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85a84e8 commit 75e811dCopy full SHA for 75e811d
build.rs
@@ -52,13 +52,7 @@ fn compile_sass() {
52
}
53
54
fn copy_js() {
55
- use std::io::Read;
56
- let mut javascript = String::new();
57
let source_path = Path::new(concat!(env!("CARGO_MANIFEST_DIR"), "/templates/menu.js"));
58
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");
63
fs::copy(&source_path, &dest_path).expect("copy template/menu.js to target");
64
0 commit comments