fmt: make bindings obey formatting

This commit is contained in:
Jonathan Kelley committed 2022-02-01 15:57:07 -05:00
1 parent 71656adc89
commit 86bac80040
2 files changed
+11 -3

No files matched your search

+6 -2
View File
@@ -2,11 +2,15 @@ use std::{fs::File, io::Write};
fn main() { fn main() {
let src = format!( let src = format!(
r###" r###"use js_sys::Function;
use js_sys::Function;
use wasm_bindgen::prelude::*; use wasm_bindgen::prelude::*;
use web_sys::{{Element, Node}}; use web_sys::{{Element, Node}};
/*
This is an autogenerated file from build.rs.
Do not edit this file directly.
*/
#[wasm_bindgen(inline_js = r##"{}"##)] #[wasm_bindgen(inline_js = r##"{}"##)]
extern "C" {{ extern "C" {{
pub type Interpreter; pub type Interpreter;
+5 -1
View File
@@ -1,8 +1,12 @@
use js_sys::Function; use js_sys::Function;
use wasm_bindgen::prelude::*; use wasm_bindgen::prelude::*;
use web_sys::{Element, Node}; 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() { #[wasm_bindgen(inline_js = r##"export function main() {
let root = window.document.getElementById("main"); let root = window.document.getElementById("main");
if (root != null) { if (root != null) {