diff --git a/core/src/services/redis/backend.rs b/core/src/services/redis/backend.rs index 17f254be2cf..b3fd69c5dab 100644 --- a/core/src/services/redis/backend.rs +++ b/core/src/services/redis/backend.rs @@ -295,7 +295,7 @@ impl Adapter { let pool = self .conn .get_or_try_init(|| async { - return bb8::Pool::builder() + bb8::Pool::builder() .build(self.get_redis_connection_manager()) .await .map_err(|err| { diff --git a/core/src/services/redis/mod.rs b/core/src/services/redis/mod.rs index 5e2b062277c..63fac0c8e6d 100644 --- a/core/src/services/redis/mod.rs +++ b/core/src/services/redis/mod.rs @@ -14,13 +14,12 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. + #[cfg(feature = "services-redis")] mod backend; -#[cfg(feature = "services-redis")] -mod core; - #[cfg(feature = "services-redis")] pub use backend::RedisBuilder as Redis; - +#[cfg(feature = "services-redis")] +mod core; mod config; -pub use config::RedisConfig; +pub use config::RedisConfig; \ No newline at end of file