From 0495f87618e82b9e59e89723a47875af769e498c Mon Sep 17 00:00:00 2001 From: Yury-Fridlyand Date: Thu, 11 Apr 2024 18:05:16 -0700 Subject: [PATCH] fix Signed-off-by: Yury-Fridlyand --- glide-core/src/client/mod.rs | 5 ++++- glide-core/src/client/reconnecting_connection.rs | 5 ++++- glide-core/src/client/standalone_client.rs | 5 ++++- glide-core/src/client/types.rs | 2 ++ glide-core/src/client/value_conversion.rs | 5 ++++- glide-core/src/errors.rs | 2 ++ glide-core/src/request_type.rs | 5 ++++- 7 files changed, 24 insertions(+), 5 deletions(-) diff --git a/glide-core/src/client/mod.rs b/glide-core/src/client/mod.rs index 645bef1118..2bb899ce5f 100644 --- a/glide-core/src/client/mod.rs +++ b/glide-core/src/client/mod.rs @@ -1,6 +1,9 @@ -/** +/* * Copyright GLIDE-for-Redis Project Contributors - SPDX Identifier: Apache-2.0 */ + +#![deny(unsafe_op_in_unsafe_fn)] + mod types; use crate::scripts_container::get_script; diff --git a/glide-core/src/client/reconnecting_connection.rs b/glide-core/src/client/reconnecting_connection.rs index c039d347bd..c50c9f9201 100644 --- a/glide-core/src/client/reconnecting_connection.rs +++ b/glide-core/src/client/reconnecting_connection.rs @@ -1,6 +1,9 @@ -/** +/* * Copyright GLIDE-for-Redis Project Contributors - SPDX Identifier: Apache-2.0 */ + +#![deny(unsafe_op_in_unsafe_fn)] + use super::{NodeAddress, TlsMode}; use crate::retry_strategies::RetryStrategy; use futures_intrusive::sync::ManualResetEvent; diff --git a/glide-core/src/client/standalone_client.rs b/glide-core/src/client/standalone_client.rs index 79246a7b76..ee79d3e529 100644 --- a/glide-core/src/client/standalone_client.rs +++ b/glide-core/src/client/standalone_client.rs @@ -1,6 +1,9 @@ -/** +/* * Copyright GLIDE-for-Redis Project Contributors - SPDX Identifier: Apache-2.0 */ + +#![deny(unsafe_op_in_unsafe_fn)] + use super::get_redis_connection_info; use super::reconnecting_connection::ReconnectingConnection; use super::{ConnectionRequest, NodeAddress, TlsMode}; diff --git a/glide-core/src/client/types.rs b/glide-core/src/client/types.rs index f942f64174..95ee04448d 100644 --- a/glide-core/src/client/types.rs +++ b/glide-core/src/client/types.rs @@ -2,6 +2,8 @@ * Copyright GLIDE-for-Redis Project Contributors - SPDX Identifier: Apache-2.0 */ +#![deny(unsafe_op_in_unsafe_fn)] + use std::time::Duration; #[cfg(feature = "socket-layer")] diff --git a/glide-core/src/client/value_conversion.rs b/glide-core/src/client/value_conversion.rs index 84a6626efa..082feff151 100644 --- a/glide-core/src/client/value_conversion.rs +++ b/glide-core/src/client/value_conversion.rs @@ -1,6 +1,9 @@ -/** +/* * Copyright GLIDE-for-Redis Project Contributors - SPDX Identifier: Apache-2.0 */ + +#![deny(unsafe_op_in_unsafe_fn)] + use redis::{ cluster_routing::Routable, from_owned_redis_value, Cmd, ErrorKind, RedisResult, Value, }; diff --git a/glide-core/src/errors.rs b/glide-core/src/errors.rs index 1c05aad84b..d277e4488b 100644 --- a/glide-core/src/errors.rs +++ b/glide-core/src/errors.rs @@ -2,6 +2,8 @@ * Copyright GLIDE-for-Redis Project Contributors - SPDX Identifier: Apache-2.0 */ +#![deny(unsafe_op_in_unsafe_fn)] + use redis::RedisError; #[repr(C)] diff --git a/glide-core/src/request_type.rs b/glide-core/src/request_type.rs index 51896c2743..05ae9d31e2 100644 --- a/glide-core/src/request_type.rs +++ b/glide-core/src/request_type.rs @@ -1,6 +1,9 @@ -/** +/* * Copyright GLIDE-for-Redis Project Contributors - SPDX Identifier: Apache-2.0 */ + +#![deny(unsafe_op_in_unsafe_fn)] + use redis::{cmd, Cmd}; #[cfg(feature = "socket-layer")]