Expose resolve_store_path

This commit is contained in:
Tony
2024-10-14 09:58:52 +08:00
parent 7e33a5eba2
commit 1498eb5404
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -21,8 +21,7 @@ use std::{
sync::{Arc, Mutex},
time::Duration,
};
use store::resolve_store_path;
pub use store::{DeserializeFn, SerializeFn, Store, StoreBuilder, StoreInner};
pub use store::{resolve_store_path, DeserializeFn, SerializeFn, Store, StoreBuilder, StoreInner};
use tauri::{
plugin::{self, TauriPlugin},
AppHandle, Manager, ResourceId, RunEvent, Runtime, State,
+1 -1
View File
@@ -23,7 +23,7 @@ pub type SerializeFn =
pub type DeserializeFn =
fn(&[u8]) -> Result<HashMap<String, JsonValue>, Box<dyn std::error::Error + Send + Sync>>;
pub(crate) fn resolve_store_path<R: Runtime>(
pub fn resolve_store_path<R: Runtime>(
app: &AppHandle<R>,
path: impl AsRef<Path>,
) -> crate::Result<PathBuf> {