Skip to content

Commit cce92bd

Browse files
committed
Make unwrap_or clippy happy
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
1 parent 931253d commit cce92bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ impl PgpPublicKey {
203203
.with_policy(&p, None)?
204204
.primary_userid()
205205
.map(|u| u.userid().to_string())
206-
.unwrap_or("<No User ID>".into());
206+
.unwrap_or_else(|_| "<No User ID>".into());
207207
ret.push(format!(" {:?}/{} - {}", algo, keyid, uid0));
208208
ret.push(format!(" Fingerprint: {}", fpr));
209209
Ok(ret)

0 commit comments

Comments
 (0)