Skip to content

Commit

Permalink
cargo fmt :(
Browse files Browse the repository at this point in the history
  • Loading branch information
ViktorPlatz committed Nov 28, 2023
1 parent 6137836 commit e4f29bf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/api/ecdar_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ impl EcdarApi for ConcreteEcdarApi {
.ok_or(Status::internal("Could not get uid from request metadata"))?;

let mut access_info_list: Vec<AccessInfo> = Vec::new(); // Initialize the Vec

match self.access_context.get_access_by_uid(uid).await {
Ok(accesses) => {
for access in accesses {
Expand Down
8 changes: 5 additions & 3 deletions src/tests/api/access_logic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ mod access_logic {

assert!(res.is_ok());
}

#[tokio::test]
async fn get_list_access_info_returns_not_found_err() {
let mut mock_services = get_mock_services();
Expand All @@ -220,9 +220,11 @@ mod access_logic {

let api = get_mock_concrete_ecdar_api(mock_services);

let res = api.list_access_info(list_access_info_request).await.unwrap_err();
let res = api
.list_access_info(list_access_info_request)
.await
.unwrap_err();

assert_eq!(res.code(), Code::NotFound);
}

}

0 comments on commit e4f29bf

Please sign in to comment.