web: rustfmt window.vectorcraft

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
focuer
2026-10-18 23:50:58 +07:00
committed by bflatastic
co-authored by Claude Opus 5.5
parent 9dbab52168
commit dc7216f0e4
2 changed files with 5 additions and 4 deletions
+3 -2
View File
@@ -19,8 +19,8 @@
use std::cell::{Cell, RefCell};
use std::sync::mpsc::{Receiver, Sender, TryRecvError};
use vectorcraft_ui_egui::ControlRequest;
use serde_json::{Value, json};
use vectorcraft_ui_egui::ControlRequest;
use wasm_bindgen::prelude::*;
use crate::saved_files::SavedFiles;
@@ -123,7 +123,8 @@ pub fn install() -> Result<(), JsValue> {
set_fn(
&obj,
"request",
Closure::<dyn Fn(String, JsValue) -> js_sys::Promise>::new(|method: String, params: JsValue| request(&method, from_js(&params))).into_js_value(),
Closure::<dyn Fn(String, JsValue) -> js_sys::Promise>::new(|method: String, params: JsValue| request(&method, from_js(&params)))
.into_js_value(),
)?;
set_fn(
&obj,
+2 -2
View File
@@ -16,14 +16,14 @@
//! URL query flags: `?webgl` forces the WebGL2 backend instead of WebGPU; `?lang=es` (any
//! language code) stands in for the browser's languages when the interface language is Automatic.
#[cfg(target_arch = "wasm32")]
mod api;
#[cfg(target_arch = "wasm32")]
mod fonts;
#[cfg(target_arch = "wasm32")]
mod locks;
#[cfg(any(target_arch = "wasm32", test))]
mod pencil;
#[cfg(target_arch = "wasm32")]
mod api;
#[cfg(any(target_arch = "wasm32", test))]
mod saved_files;
#[cfg(target_arch = "wasm32")]