feat: resorder envelops
This commit is contained in:
@@ -2,7 +2,9 @@ use openpgp_card_pcsc::PcscBackend;
|
||||
use rust_util::{opt_result, opt_value_result, simple_error, warning, XResult};
|
||||
|
||||
pub fn get_card() -> XResult<PcscBackend> {
|
||||
let card_list = opt_result!(PcscBackend::cards(None), "Read OpenPGP card list failed: {}");
|
||||
let card_list = opt_result!(
|
||||
PcscBackend::cards(None), "Read OpenPGP card list failed: {}"
|
||||
);
|
||||
if card_list.is_empty() {
|
||||
return simple_error!("Cannot find any card");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user