Skip to content

Commit 8cf1be6

Browse files
committed
fix typecheck
1 parent 37495a2 commit 8cf1be6

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

crates/db-user/src/lib.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ pub async fn migrate(db: &UserDatabase) -> Result<(), crate::Error> {
179179
#[cfg(test)]
180180
mod tests {
181181
use super::UserDatabase;
182-
use crate::{init, migrate};
182+
use crate::migrate;
183183
use hypr_db_core::DatabaseBuilder;
184184

185185
pub async fn setup_db() -> UserDatabase {
@@ -190,9 +190,7 @@ mod tests {
190190
}
191191

192192
#[tokio::test]
193-
async fn test_seed() {
194-
let db = setup_db().await;
195-
let user_id = uuid::Uuid::new_v4().to_string();
196-
init::seed(&db, user_id).await.unwrap();
193+
async fn test_migrate() {
194+
let _ = setup_db().await;
197195
}
198196
}

plugins/store2/src/error.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ pub enum Error {
1010
TauriError(#[from] tauri::Error),
1111
#[error(transparent)]
1212
IoError(#[from] std::io::Error),
13+
#[error(transparent)]
14+
Path2Error(#[from] tauri_plugin_path2::Error),
1315
}
1416

1517
impl Serialize for Error {

plugins/store2/src/ext.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
use std::path::PathBuf;
22
use std::sync::Arc;
33

4-
use tauri::Manager;
54
use tauri_plugin_path2::Path2PluginExt;
65

76
pub const STORE_FILENAME: &str = "store.json";

0 commit comments

Comments
 (0)