Skip to content

Commit 89460c0

Browse files
committed
Resolve instance of Clippy's zero_ptr lint in the Partial helper type.
1 parent b077676 commit 89460c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/partial.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ impl<T> Partial<T> {
3838

3939
#[cfg(feature = "rayon")]
4040
pub(crate) fn stub() -> Self {
41-
Self { len: 0, ptr: 0 as *mut _ }
41+
Self { len: 0, ptr: ptr::null_mut() }
4242
}
4343

4444
#[cfg(feature = "rayon")]

0 commit comments

Comments
 (0)