Quellcode durchsuchen

fix unused imports in pattern

Chip Reed vor 2 Jahren
Ursprung
Commit
8e32c14b26
1 geänderte Dateien mit 3 neuen und 5 gelöschten Zeilen
  1. 3 5
      core/tauri-utils/src/pattern/mod.rs

+ 3 - 5
core/tauri-utils/src/pattern/mod.rs

@@ -2,12 +2,10 @@
 // SPDX-License-Identifier: Apache-2.0
 // SPDX-License-Identifier: MIT
 
-use std::{marker::PhantomData, sync::Arc};
+use std::marker::PhantomData;
 
 use crate::assets::{Assets, EmbeddedAssets};
 
-use self::isolation::Keys;
-
 /// Handling the Tauri "Isolation" Pattern.
 #[cfg(feature = "isolation")]
 pub mod isolation;
@@ -21,7 +19,7 @@ pub enum Pattern<A: Assets = EmbeddedAssets> {
   #[cfg(feature = "isolation")]
   Isolation {
     /// The HTML served on `isolation://index.html`.
-    assets: Arc<A>,
+    assets: std::sync::Arc<A>,
 
     /// The schema used for the isolation frames.
     schema: String,
@@ -32,7 +30,7 @@ pub enum Pattern<A: Assets = EmbeddedAssets> {
     key: String,
 
     /// Cryptographically secure keys
-    crypto_keys: Box<Keys>,
+    crypto_keys: Box<self::isolation::Keys>,
   },
 }