From 26b669dc51c7bd34aa5781452c620f6d45f4a89e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=AE=87=E9=80=B8?= Date: Fri, 1 Mar 2024 16:30:34 +0800 Subject: [PATCH] Fix warnings. --- bins/ayaka-gui/src-tauri/src/lib.rs | 6 +----- bins/ayaka-gui/src-tauri/src/settings.rs | 5 +---- plugins/ayacript/src/plugin.rs | 1 - utils/ayaka-model/src/view_model.rs | 1 - utils/ayaka-runtime/src/config.rs | 1 - utils/ayaka-runtime/src/context.rs | 1 - utils/ayaka-runtime/src/plugin.rs | 1 - 7 files changed, 2 insertions(+), 14 deletions(-) diff --git a/bins/ayaka-gui/src-tauri/src/lib.rs b/bins/ayaka-gui/src-tauri/src/lib.rs index 6274adea..edf541f7 100644 --- a/bins/ayaka-gui/src-tauri/src/lib.rs +++ b/bins/ayaka-gui/src-tauri/src/lib.rs @@ -7,11 +7,7 @@ mod settings; #[cfg(mobile)] mod mobile; -use ayaka_model::{ - anyhow::{self, Result}, - vfs::VfsPath, - *, -}; +use ayaka_model::{anyhow::Result, vfs::VfsPath, *}; use ayaka_plugin_wasmi::{WasmiLinker, WasmiModule}; use clap::Parser; use serde::{Deserialize, Serialize}; diff --git a/bins/ayaka-gui/src-tauri/src/settings.rs b/bins/ayaka-gui/src-tauri/src/settings.rs index 6663dd8f..803db70d 100644 --- a/bins/ayaka-gui/src-tauri/src/settings.rs +++ b/bins/ayaka-gui/src-tauri/src/settings.rs @@ -1,7 +1,4 @@ -use ayaka_model::{ - anyhow::{self, Result}, - *, -}; +use ayaka_model::{anyhow::Result, *}; use serde::{de::DeserializeOwned, Serialize}; use std::path::{Path, PathBuf}; use tauri::{App, Manager}; diff --git a/plugins/ayacript/src/plugin.rs b/plugins/ayacript/src/plugin.rs index aa1717cc..a082afda 100644 --- a/plugins/ayacript/src/plugin.rs +++ b/plugins/ayacript/src/plugin.rs @@ -1,7 +1,6 @@ use crate::*; use ayaka_plugin::*; use ayaka_script::*; -use std::collections::HashMap; #[import("plugin")] extern "C" { diff --git a/utils/ayaka-model/src/view_model.rs b/utils/ayaka-model/src/view_model.rs index 86a2b462..f758e1dc 100644 --- a/utils/ayaka-model/src/view_model.rs +++ b/utils/ayaka-model/src/view_model.rs @@ -1,6 +1,5 @@ use crate::*; use anyhow::Result; -use ayaka_plugin::RawModule; use serde::Serialize; use stream_future::stream; use trylog::macros::*; diff --git a/utils/ayaka-runtime/src/config.rs b/utils/ayaka-runtime/src/config.rs index e74397e7..0b9cccef 100644 --- a/utils/ayaka-runtime/src/config.rs +++ b/utils/ayaka-runtime/src/config.rs @@ -1,5 +1,4 @@ use crate::*; -use ayaka_bindings_types::VarMap; use fallback::Fallback; use serde::Deserialize; use std::collections::HashMap; diff --git a/utils/ayaka-runtime/src/context.rs b/utils/ayaka-runtime/src/context.rs index eb1022eb..3481fc1c 100644 --- a/utils/ayaka-runtime/src/context.rs +++ b/utils/ayaka-runtime/src/context.rs @@ -4,7 +4,6 @@ use crate::{ }; use anyhow::{anyhow, bail, Result}; use ayaka_bindings_types::*; -use ayaka_plugin::RawModule; use fallback::Fallback; use log::error; use serde::Serialize; diff --git a/utils/ayaka-runtime/src/plugin.rs b/utils/ayaka-runtime/src/plugin.rs index 8975f5ed..5ab3c686 100644 --- a/utils/ayaka-runtime/src/plugin.rs +++ b/utils/ayaka-runtime/src/plugin.rs @@ -10,7 +10,6 @@ mod script_interop; mod test; use crate::*; -use anyhow::Result; use ayaka_plugin::*; use std::{ collections::HashMap,