(val: S)
| 40 | |
| 41 | impl<S: Zeroize> SecretBox<S> { |
| 42 | fn new(val: S) -> Self { |
| 43 | let mut b = Box::new(val); |
| 44 | // TODO(MSRV-1.98): use `Box::as_mut_ptr` |
| 45 | let p: *mut S = &raw mut *b; |
| 46 | REG_PTR.store(p.cast(), Relaxed); |
| 47 | Self(b) |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | impl<S: Zeroize> Drop for SecretBox<S> { |
nothing calls this directly
no outgoing calls
no test coverage detected