We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cef561 commit debae90Copy full SHA for debae90
secp256k1-sys/src/lib.rs
@@ -1388,25 +1388,6 @@ impl<T> CPtr for [T] {
1388
}
1389
1390
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
1403
- ptr::null_mut()
1404
1405
- self.as_ptr() as *mut Self::Target
1406
1407
1408
-}
1409
1410
impl CPtr for [u8; 32] {
1411
type Target = u8;
1412
fn as_c_ptr(&self) -> *const Self::Target { self.as_ptr() }
0 commit comments