wrapping_add in storage and more moving

This commit is contained in:
Fabian Kaczmarczyck
2020-11-26 19:21:41 +01:00
parent 1d7365c4cb
commit 1571f58cd3
2 changed files with 15 additions and 14 deletions

View File

@@ -359,7 +359,7 @@ impl PersistentStore {
.map(|c| c.creation_order)
.max()
.unwrap_or(0)
+ 1)
.wrapping_add(1))
}
pub fn global_signature_counter(&self) -> Result<u32, Ctap2StatusCode> {