From 4e43b9751396c20368662db951fd8d0eab322968 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20DOUIN?= Date: Sun, 16 Jul 2023 21:45:50 +0200 Subject: [PATCH] fix notmuch feature --- src/config/prelude.rs | 4 ++-- src/domain/backend/notmuch/wizard.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/config/prelude.rs b/src/config/prelude.rs index ce5631d..91b3388 100644 --- a/src/config/prelude.rs +++ b/src/config/prelude.rs @@ -1,9 +1,9 @@ +#[cfg(feature = "notmuch-backend")] +use pimalaya_email::backend::NotmuchConfig; #[cfg(feature = "imap-backend")] use pimalaya_email::backend::{ImapAuthConfig, ImapConfig}; #[cfg(feature = "smtp-sender")] use pimalaya_email::sender::{SmtpAuthConfig, SmtpConfig}; -#[cfg(feature = "notmuch-backend")] -use pimalaya_email::NotmuchConfig; use pimalaya_email::{ account::{OAuth2Config, OAuth2Method, OAuth2Scopes, PasswdConfig}, backend::{BackendConfig, MaildirConfig}, diff --git a/src/domain/backend/notmuch/wizard.rs b/src/domain/backend/notmuch/wizard.rs index 1438e76..a2a783a 100644 --- a/src/domain/backend/notmuch/wizard.rs +++ b/src/domain/backend/notmuch/wizard.rs @@ -1,6 +1,6 @@ use anyhow::Result; use dialoguer::Input; -use pimalaya_email::{BackendConfig, NotmuchBackend, NotmuchConfig}; +use pimalaya_email::backend::{BackendConfig, NotmuchBackend, NotmuchConfig}; use crate::config::wizard::THEME;