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;