Skip to content

Commit 416bf8e

Browse files
committed
Replace the manual unsafe C-string construction with the safe c"arrow_array_stream" macro, eliminating the need for the clippy suppression and unsafety
1 parent 116f9bb commit 416bf8e

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/dataframe.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,7 @@ use crate::{
5858
expr::{sort_expr::PySortExpr, PyExpr},
5959
};
6060

61-
#[allow(clippy::manual_c_str_literals)]
62-
static ARROW_STREAM_NAME: &CStr =
63-
unsafe { CStr::from_bytes_with_nul_unchecked(b"arrow_array_stream\0") };
61+
static ARROW_STREAM_NAME: &CStr = c"arrow_array_stream";
6462

6563
// https://github.com/apache/datafusion-python/pull/1016#discussion_r1983239116
6664
// - we have not decided on the table_provider approach yet

0 commit comments

Comments
 (0)