From f74bcd3127688bba222d55e936eb042bfadc1523 Mon Sep 17 00:00:00 2001 From: Jonas Kruckenberg Date: Sun, 13 Nov 2022 21:19:10 +0100 Subject: [PATCH] fmt --- src/event.rs | 5 ++--- src/window.rs | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/event.rs b/src/event.rs index 8015bdc..9ba40f1 100644 --- a/src/event.rs +++ b/src/event.rs @@ -1,5 +1,5 @@ -use std::fmt::Debug; use serde::{de::DeserializeOwned, Deserialize, Serialize}; +use std::fmt::Debug; use wasm_bindgen::{prelude::Closure, JsValue}; #[derive(Deserialize)] @@ -45,8 +45,7 @@ impl Debug for Event { /// @param event Event name. Must include only alphanumeric characters, `-`, `/`, `:` and `_`. #[inline(always)] pub async fn emit(event: &str, payload: &T) -> crate::Result<()> { - inner::emit(event, serde_wasm_bindgen::to_value(payload)?) - .await?; + inner::emit(event, serde_wasm_bindgen::to_value(payload)?).await?; Ok(()) } diff --git a/src/window.rs b/src/window.rs index a2d6045..5d28453 100644 --- a/src/window.rs +++ b/src/window.rs @@ -331,7 +331,7 @@ impl WebviewWindow { pub async fn set_cursor_position(&self, position: Position) -> crate::Result<()> { match position { Position::Physical(pos) => self.0.setCursorPositionPhysical(pos.0).await?, - Position::Logical(pos) => self.0.setCursorPositionLogical(pos.0).await? + Position::Logical(pos) => self.0.setCursorPositionLogical(pos.0).await?, } Ok(())