mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-12 20:41:24 +00:00
rustfmt all the things
This commit is contained in:
@ -5,7 +5,7 @@ extern crate wasm_bindgen;
|
||||
use wasm_bindgen::prelude::*;
|
||||
|
||||
#[wasm_bindgen(module = "./defined-in-js")]
|
||||
extern {
|
||||
extern "C" {
|
||||
fn name() -> String;
|
||||
|
||||
type MyClass;
|
||||
@ -23,7 +23,7 @@ extern {
|
||||
|
||||
// Import `console.log` so we can log something to the console
|
||||
#[wasm_bindgen]
|
||||
extern {
|
||||
extern "C" {
|
||||
#[wasm_bindgen(js_namespace = console)]
|
||||
fn log(s: &str);
|
||||
}
|
||||
|
Reference in New Issue
Block a user