Skip to content

Commit 8c4e6ab

Browse files
committed
Fix issues related to linter (cargo fmt)
Signed-off-by: Sergio Arroutbi <[email protected]>
1 parent 98af9fb commit 8c4e6ab

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

keylime/src/registrar_client.rs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1863,7 +1863,10 @@ mod tests {
18631863

18641864
// Verify we got a blob back
18651865
let blob = result.unwrap(); //#[allow_ci]
1866-
assert!(!blob.is_empty(), "Expected non-empty blob from registration");
1866+
assert!(
1867+
!blob.is_empty(),
1868+
"Expected non-empty blob from registration"
1869+
);
18671870
}
18681871

18691872
#[actix_rt::test]
@@ -1901,9 +1904,8 @@ mod tests {
19011904
let mut registrar_client =
19021905
builder.build().await.expect("Failed to build client");
19031906

1904-
let result = registrar_client
1905-
.activate_agent(&ai, "test-auth-tag")
1906-
.await;
1907+
let result =
1908+
registrar_client.activate_agent(&ai, "test-auth-tag").await;
19071909
assert!(result.is_ok(), "HTTP activation failed: {result:?}");
19081910
}
19091911

@@ -1926,7 +1928,7 @@ mod tests {
19261928
.build()
19271929
.unwrap(); //#[allow_ci]
19281930

1929-
let ai = AgentIdentityBuilder::new()
1931+
let _ = AgentIdentityBuilder::new()
19301932
.ak_pub(&mock_data)
19311933
.ek_pub(&mock_data)
19321934
.enabled_api_versions(vec!["1.2"])
@@ -1976,7 +1978,7 @@ mod tests {
19761978
);
19771979

19781980
let client = result.unwrap(); //#[allow_ci]
1979-
// Verify the API version was retrieved
1981+
// Verify the API version was retrieved
19801982
assert_eq!(client.api_version, "1.2");
19811983
assert!(client.supported_api_versions.is_some());
19821984

0 commit comments

Comments
 (0)