Print language setting(s) in display format

This commit is contained in:
Heiko Schaefer 2022-02-25 18:56:24 +01:00
parent af0410191e
commit 326ba895a9
No known key found for this signature in database
GPG key ID: 4A849A1904CCBD7D

View file

@ -206,7 +206,12 @@ fn print_status(ident: Option<String>, verbose: bool) -> Result<()> {
} }
if let Some(lang) = crd.lang() { if let Some(lang) = crd.lang() {
println!("Language preferences '{:?}'", lang); let l = lang
.iter()
.map(|l| format!("{}", l))
.collect::<Vec<_>>()
.join(", ");
println!("Language preferences: '{}'", l);
} }
// information about subkeys // information about subkeys