From f7a43077fe4e139dd7e3f46f448e0951740ec148 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Wed, 2 Sep 2026 18:26:45 +0800 Subject: fix: qmlfmt IListView: animation --- qml_plugin/src/lib.rs | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'qml_plugin/src/lib.rs') diff --git a/qml_plugin/src/lib.rs b/qml_plugin/src/lib.rs index f9f095e..0f1411c 100644 --- a/qml_plugin/src/lib.rs +++ b/qml_plugin/src/lib.rs @@ -2,14 +2,8 @@ use std::sync::LazyLock; use tokio::task; -static RUNTIME: LazyLock = LazyLock::new( - || { - tokio::runtime::Builder::new_multi_thread() - .enable_all() - .build() - .unwrap() - }, -); +static RUNTIME: LazyLock = + LazyLock::new(|| tokio::runtime::Builder::new_multi_thread().enable_all().build().unwrap()); /// for example duckduckgo we wanna cancel first request if user types new query /// using this guarentee that only one request is running at a time or at least @@ -32,10 +26,7 @@ impl ExclusiveExecutor { F: Future + Send + 'static, F::Output: Send + 'static, { - if let Some(handle) = self - .handle - .take() - { + if let Some(handle) = self.handle.take() { handle.abort(); } -- cgit v1.2.3