~soywod/pimalaya

email-lib: add reminder for completing From impl for Pgp v1 APPLIED

Perma Alesheikh: 1
 add reminder for completing From impl for Pgp

 1 files changed, 2 insertions(+), 1 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/49343/mbox | git am -3
Learn more about email & git

[PATCH email-lib] add reminder for completing From impl for Pgp Export this patch

Since the current GpgConfig is unused and empty, no fields in the From
implementation of GpgConfig to Pgp is used. Since the GpgConfig will
gain the appropiate fields in the future, there should be a reminder to
also update the from implementation as well.

Signed-off-by: Perma Alesheikh <me@prma.dev>
---
 email/src/account/config/pgp/gpg.rs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/email/src/account/config/pgp/gpg.rs b/email/src/account/config/pgp/gpg.rs
index ddf6a7e..46f317b 100644
--- a/email/src/account/config/pgp/gpg.rs
+++ b/email/src/account/config/pgp/gpg.rs
@@ -5,7 +5,8 @@
pub struct GpgConfig;

impl From<GpgConfig> for Pgp {
    fn from(val: GpgConfig) -> Self {
    fn from(_val: GpgConfig) -> Self {
        // TODO: retrieve Gpg home_dir from configurations.
        Pgp::Gpg(Gpg { home_dir: None })
    }
}
-- 
2.43.0