~soywod/pimalaya

email-lib: remove uneffectful call to default v1 SUPERSEDED

Perma Alesheikh: 1
 remove uneffectful call to default

 2 files changed, 0 insertions(+), 2 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~soywod/pimalaya/patches/49348/mbox | git am -3
Learn more about email & git

[PATCH email-lib] remove uneffectful call to default Export this patch

Every field has already been filled. By adding the ..Default::default()
we may cause unintended filling of fields in case any other fields are
added. By removing the ..Default::default(), the compiler will require
the modifier to explicitly handle these fields.

Signed-off-by: Perma Alesheikh <me@prma.dev>
---
 email/tests/backend_v2.rs | 1 -
 email/tests/smtp.rs       | 1 -
 2 files changed, 2 deletions(-)

diff --git a/email/tests/backend_v2.rs b/email/tests/backend_v2.rs
index 1f0fe99..564d0d5 100644
--- a/email/tests/backend_v2.rs
+++ b/email/tests/backend_v2.rs
@@ -50,7 +50,6 @@ async fn test_backend_v2() {
        encryption: Some(SmtpEncryptionKind::None),
        login: "alice@localhost".into(),
        auth: SmtpAuthConfig::Passwd(PasswdConfig(Secret::new_raw("password"))),
        ..Default::default()
    });

    // TEST DYNAMIC BACKEND
diff --git a/email/tests/smtp.rs b/email/tests/smtp.rs
index 057096e..92defa0 100644
--- a/email/tests/smtp.rs
+++ b/email/tests/smtp.rs
@@ -36,7 +36,6 @@ async fn test_smtp_features() {
        encryption: Some(SmtpEncryptionKind::None),
        login: "alice@localhost".into(),
        auth: SmtpAuthConfig::Passwd(PasswdConfig(Secret::new_raw("password"))),
        ..Default::default()
    });

    let imap_ctx = ImapContextBuilder::new(imap_config);
-- 
2.43.0