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(()) }