Skip to content

Commit 2327f36

Browse files
committed
c_str macro
1 parent c6493df commit 2327f36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/random.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ impl<'py> PyBitGeneratorMethods for Bound<'py, PyBitGenerator> {
108108
}
109109
lock.call_method0("acquire")?;
110110

111-
assert_eq!(capsule.name()?, Some(c"BitGenerator"));
111+
assert_eq!(capsule.name()?, Some(ffi::c_str!("BitGenerator")));
112112
let ptr = capsule.pointer() as *mut bitgen_t;
113113
let Some(non_null) = NonNull::new(ptr) else {
114114
lock.call_method0("release")?;

0 commit comments

Comments
 (0)