fmt: make bindings obey formatting
This commit is contained in:
1 parent
71656adc89
commit
86bac80040
2 files changed
+11
-3
No files matched your search
@@ -2,11 +2,15 @@ use std::{fs::File, io::Write};
|
||||
|
||||
fn main() {
|
||||
let src = format!(
|
||||
r###"
|
||||
use js_sys::Function;
|
||||
r###"use js_sys::Function;
|
||||
use wasm_bindgen::prelude::*;
|
||||
use web_sys::{{Element, Node}};
|
||||
|
||||
/*
|
||||
This is an autogenerated file from build.rs.
|
||||
Do not edit this file directly.
|
||||
*/
|
||||
|
||||
#[wasm_bindgen(inline_js = r##"{}"##)]
|
||||
extern "C" {{
|
||||
pub type Interpreter;
|
||||
|
||||
@@ -1,8 +1,12 @@
|
||||
|
||||
use js_sys::Function;
|
||||
use wasm_bindgen::prelude::*;
|
||||
use web_sys::{Element, Node};
|
||||
|
||||
/*
|
||||
This is an autogenerated file from build.rs.
|
||||
Do not edit this file directly.
|
||||
*/
|
||||
|
||||
#[wasm_bindgen(inline_js = r##"export function main() {
|
||||
let root = window.document.getElementById("main");
|
||||
if (root != null) {
|
||||
|
||||
Reference in new issue
Block a user