Skip to content

Commit

Permalink
🤖 cargo-fmt auto-update
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jan 23, 2025
1 parent aa1f722 commit 0049fbc
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/internet_identity/src/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,17 +106,17 @@ use crate::storage::memory_wrapper::MemoryWrapper;
use crate::storage::registration_rates::RegistrationRates;
use crate::storage::stable_anchor::StableAnchor;
use crate::storage::storable_anchor::StorableAnchor;
use crate::storage::storable_openid_credential_key::StorableOpenIdCredentialKey;
use crate::storage::storable_persistent_state::StorablePersistentState;
use internet_identity_interface::internet_identity::types::*;
use crate::storage::storable_openid_credential_key::StorableOpenIdCredentialKey;

pub mod anchor;
pub mod registration_rates;

pub mod stable_anchor;
mod storable_openid_credential_key;
/// module for the internal serialization format of anchors
mod storable_anchor;
mod storable_openid_credential_key;
mod storable_persistent_state;
#[cfg(test)]
mod tests;
Expand Down Expand Up @@ -471,7 +471,8 @@ impl<M: Memory + Clone> Storage<M> {
let credential_to_be_removed = previous_set.difference(&current_set);
let credential_to_be_added = current_set.difference(&previous_set);
credential_to_be_removed.for_each(|key| {
self.lookup_anchor_with_openid_credential_memory.remove(&key.into());
self.lookup_anchor_with_openid_credential_memory
.remove(&key.into());
});
credential_to_be_added.for_each(|key| {
self.lookup_anchor_with_openid_credential_memory
Expand All @@ -484,7 +485,8 @@ impl<M: Memory + Clone> Storage<M> {
&self,
key: &OpenIdCredentialKey,
) -> Option<AnchorNumber> {
self.lookup_anchor_with_openid_credential_memory.get(&key.into())
self.lookup_anchor_with_openid_credential_memory
.get(&key.into())
}

/// Make sure all the required metadata is recorded to stable memory.
Expand Down

0 comments on commit 0049fbc

Please sign in to comment.