Mercurial > crates > nonstick
diff src/libpam/question.rs @ 79:2128123b9406
Format (oops!) and make some fun and/or stupid conversions available.
author | Paul Fisher <paul@pfish.zone> |
---|---|
date | Sun, 08 Jun 2025 04:21:58 -0400 |
parents | 002adfb98c5c |
children | 5aa1a010f1e8 |
line wrap: on
line diff
--- a/src/libpam/question.rs Sun Jun 08 03:48:40 2025 -0400 +++ b/src/libpam/question.rs Sun Jun 08 04:21:58 2025 -0400 @@ -317,13 +317,10 @@ Message::RadioPrompt(p) => alloc(Style::RadioType, p.question()), Message::Error(p) => alloc(Style::ErrorMsg, p.question()), Message::Info(p) => alloc(Style::TextInfo, p.question()), - Message::BinaryPrompt(p) => { - let q = p.question(); - Ok(( - Style::BinaryPrompt, - CBinaryData::alloc(q)?.cast(), - )) - } + Message::BinaryPrompt(p) => Ok(( + Style::BinaryPrompt, + CBinaryData::alloc(p.question())?.cast(), + )), } }