keyfork wizard: upcast i and index to avoid wrapping add

This commit is contained in:
Ryan Heywood 2024-04-16 12:56:33 -04:00
parent 0fe5301352
commit 289cec36ef
Signed by: ryan
GPG Key ID: 8E401478A3FBEF72
1 changed files with 2 additions and 2 deletions

View File

@ -132,8 +132,8 @@ fn generate_shard_secret(
for i in 0..keys_per_shard {
pm.prompt_message(Message::Text(format!(
"Please remove all keys and insert key #{} for user #{}",
i + 1,
index + 1,
(i as u16) + 1,
(index as u16) + 1,
)))?;
let card_backend = loop {
if let Some(c) = PcscBackend::cards(None)?.next().transpose()? {