We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ZeroizeOnDrop
#[zeroize(drop)]
1 parent 5092abf commit ca16325Copy full SHA for ca16325
zeroize/derive/src/lib.rs
@@ -317,17 +317,13 @@ fn derive_zeroize_with_drop(s: synstructure::Structure<'_>) -> TokenStream {
317
}
318
});
319
320
- let zeroize_on_drop_impl = impl_zeroize_on_drop(&s);
321
-
322
let zeroize_impl = derive_zeroize_without_drop(s);
323
324
quote! {
325
#zeroize_impl
326
327
#[doc(hidden)]
328
#drop_impl
329
330
- #zeroize_on_drop_impl
331
332
333
@@ -418,12 +414,6 @@ mod tests {
418
414
419
415
420
416
};
421
- #[allow(non_upper_case_globals)]
422
- #[doc(hidden)]
423
- const _DERIVE_zeroize_ZeroizeOnDrop_FOR_Z: () = {
424
- extern crate zeroize;
425
- impl zeroize::ZeroizeOnDrop for Z {}
426
- };
427
417
428
no_build // tests the code compiles are in the `zeroize` crate
429
0 commit comments