From a6e42035edfac159a6124d0bc74e5bb919d2d1b0 Mon Sep 17 00:00:00 2001 From: Ephraim Feldblum Date: Mon, 4 Nov 2024 11:04:22 +0200 Subject: [PATCH] formatting --- tests/integration.rs | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/tests/integration.rs b/tests/integration.rs index 8492c84b..09ce522c 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -330,9 +330,7 @@ fn test_get_current_user() -> Result<()> { } #[test] -#[cfg( - feature = "min-redis-compatibility-version-7-4", -)] +#[cfg(feature = "min-redis-compatibility-version-7-4")] fn test_set_acl_categories() -> Result<()> { let port: u16 = 6490; let _guards = vec![start_redis_server_with_module("acl", port) @@ -347,9 +345,7 @@ fn test_set_acl_categories() -> Result<()> { } #[test] -#[cfg( - feature = "min-redis-compatibility-version-8-0", -)] +#[cfg(feature = "min-redis-compatibility-version-8-0")] fn test_set_acl_categories_commands() -> Result<()> { let port: u16 = 6490; let _guards = vec![start_redis_server_with_module("acl", port) @@ -358,7 +354,10 @@ fn test_set_acl_categories_commands() -> Result<()> { get_redis_connection(port).with_context(|| "failed to connect to redis server")?; let res: Vec = redis::cmd("ACL").arg("CAT").arg("acl").query(&mut con)?; - assert!(res.contains(&"verify_key_access_for_user".to_owned()) && res.contains(&"get_current_user".to_owned())); + assert!( + res.contains(&"verify_key_access_for_user".to_owned()) + && res.contains(&"get_current_user".to_owned()) + ); Ok(()) }