diff src/conv.rs @ 146:1bc52025156b

Split PAM items into their own separate struct. To trim down the number of methods on `PamShared`, this puts all the Items into their own struct(s). This also makes the split between authtok/authtok_item easier to understand.
author Paul Fisher <paul@pfish.zone>
date Sun, 06 Jul 2025 19:10:26 -0400
parents ebb71a412b58
children
line wrap: on
line diff
--- a/src/conv.rs	Sun Jul 06 19:04:57 2025 -0400
+++ b/src/conv.rs	Sun Jul 06 19:10:26 2025 -0400
@@ -412,7 +412,7 @@
     };
 }
 
-impl<C: Conversation> ConversationAdapter for C {
+impl<C: Conversation + ?Sized> ConversationAdapter for C {
     conv_fn!(prompt(message: OsStr) -> OsString { QAndA });
     conv_fn!(masked_prompt(message: OsStr) -> OsString { MaskedQAndA } );
     conv_fn!(error_msg(message: OsStr) { ErrorMsg });