Skip to content

Commit

Permalink
chore: cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Oran-Dan committed Sep 25, 2024
1 parent a2660ba commit 5b7a371
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
1 change: 0 additions & 1 deletion agent_api_rest/src/issuance/credentials.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@ pub(crate) async fn all_credentials(State(state): State<IssuanceState>) -> Respo
}
}


#[cfg(test)]
pub mod tests {
use super::*;
Expand Down
3 changes: 1 addition & 2 deletions agent_api_rest/src/issuance/offers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ use axum::{
};
use hyper::header;
use serde::{Deserialize, Serialize};
use serde_json::json;
use serde_json::Value;
use tracing::info;
use serde_json::json;

#[derive(Deserialize, Serialize)]
#[serde(rename_all = "camelCase")]
Expand Down Expand Up @@ -82,7 +82,6 @@ pub(crate) async fn offers(State(state): State<IssuanceState>, Json(payload): Js
}
}


#[axum_macros::debug_handler]
pub(crate) async fn all_offers(State(state): State<IssuanceState>) -> Response {
match query_handler("all_offers", &state.query.all_offers).await {
Expand Down
2 changes: 1 addition & 1 deletion agent_issuance/src/offer/queries/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pub mod access_token;
pub mod pre_authorized_code;
pub mod all_offers;
pub mod pre_authorized_code;

use super::event::OfferEvent;
use crate::offer::aggregate::Offer;
Expand Down
6 changes: 3 additions & 3 deletions agent_issuance/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ use std::sync::Arc;
use tracing::{info, warn};

use crate::credential::aggregate::Credential;
use crate::credential::queries::CredentialView;
use crate::credential::queries::all_credentials::AllCredentialsView;
use crate::credential::queries::CredentialView;
use crate::offer::aggregate::Offer;
use crate::offer::queries::all_offers::AllOffersView;
use crate::offer::queries::access_token::AccessTokenView;
use crate::offer::queries::all_offers::AllOffersView;
use crate::offer::queries::pre_authorized_code::PreAuthorizedCodeView;
use crate::offer::queries::OfferView;
use crate::server_config::aggregate::ServerConfig;
Expand Down Expand Up @@ -71,7 +71,7 @@ impl Clone for Queries {
credential: self.credential.clone(),
all_credentials: self.all_credentials.clone(),
offer: self.offer.clone(),
all_offers: self.all_offers.clone()
all_offers: self.all_offers.clone(),
}
}
}
Expand Down

0 comments on commit 5b7a371

Please sign in to comment.