diff --git a/src/api/ecdar_api.rs b/src/api/ecdar_api.rs index b438f92..ac71b9f 100644 --- a/src/api/ecdar_api.rs +++ b/src/api/ecdar_api.rs @@ -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 = Vec::new(); // Initialize the Vec - + match self.access_context.get_access_by_uid(uid).await { Ok(accesses) => { for access in accesses { diff --git a/src/tests/api/access_logic.rs b/src/tests/api/access_logic.rs index d6bb77c..79143d8 100644 --- a/src/tests/api/access_logic.rs +++ b/src/tests/api/access_logic.rs @@ -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(); @@ -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); } - }