Skip to content

Commit

Permalink
Attempt to fix lint-rust
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-congo committed Apr 19, 2024
1 parent dc193aa commit 581e2de
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions go/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
/**
* Copyright GLIDE-for-Redis Project Contributors - SPDX Identifier: Apache-2.0
*/
// TODO: uncomment
// #![deny(unsafe_op_in_unsafe_fn)]

#![deny(unsafe_op_in_unsafe_fn)]
use glide_core::client::Client as GlideClient;
use glide_core::connection_request;
use glide_core::errors;
Expand Down Expand Up @@ -368,7 +366,7 @@ pub unsafe extern "C" fn command(
arg_count: usize,
args: *const *const c_char,
) {
let client = unsafe { Box::leak(Box::from_raw(client_ptr as *mut Client)) };
let client = unsafe { Box::leak(Box::from_raw(client_ptr as *mut Client)) };
// The safety of this needs to be ensured by the calling code. Cannot dispose of the pointer before all operations have completed.
let ptr_address = client_ptr as usize;

Expand Down

0 comments on commit 581e2de

Please sign in to comment.