Skip to content

Commit debae90

Browse files
committed
secp256k1-sys: remove CPtr impl for &[T]
1 parent 2cef561 commit debae90

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

secp256k1-sys/src/lib.rs

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1388,25 +1388,6 @@ impl<T> CPtr for [T] {
13881388
}
13891389
}
13901390

1391-
impl<T> CPtr for &[T] {
1392-
type Target = T;
1393-
fn as_c_ptr(&self) -> *const Self::Target {
1394-
if self.is_empty() {
1395-
ptr::null()
1396-
} else {
1397-
self.as_ptr()
1398-
}
1399-
}
1400-
1401-
fn as_mut_c_ptr(&mut self) -> *mut Self::Target {
1402-
if self.is_empty() {
1403-
ptr::null_mut()
1404-
} else {
1405-
self.as_ptr() as *mut Self::Target
1406-
}
1407-
}
1408-
}
1409-
14101391
impl CPtr for [u8; 32] {
14111392
type Target = u8;
14121393
fn as_c_ptr(&self) -> *const Self::Target { self.as_ptr() }

0 commit comments

Comments
 (0)