From 28ab91329f0df964d6f960eda3b216a5df0921c9 Mon Sep 17 00:00:00 2001 From: Rémi Bardon Date: Fri, 30 May 2025 17:53:47 +0000 Subject: fix(filamento): fix non-WASM build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: cel 🌸 --- filamento/src/error.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'filamento/src/error.rs') diff --git a/filamento/src/error.rs b/filamento/src/error.rs index af3320f..f9f9199 100644 --- a/filamento/src/error.rs +++ b/filamento/src/error.rs @@ -297,7 +297,7 @@ pub enum DatabaseOpenError { // #[error("migration: {0}")] // Migration(Arc), #[error("io: {0}")] - Io(Arc), + Io(Arc), #[error("invalid path")] InvalidPath, #[error("tokio oneshot recv error: {0}")] @@ -310,8 +310,8 @@ pub enum DatabaseOpenError { // } // } -impl From for DatabaseOpenError { - fn from(e: tokio::io::Error) -> Self { +impl From for DatabaseOpenError { + fn from(e: std::io::Error) -> Self { Self::Io(Arc::new(e)) } } -- cgit