-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: missing_debug_implementations
#1315
fix: missing_debug_implementations
#1315
Conversation
b580482
to
54a3024
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similarly to RustCrypto/block-modes/pull/46, you should not derive Debug
for types which contain sensitive information.
@@ -250,9 +250,9 @@ pub trait BlockDecrypt: BlockSizeUser { | |||
#[cfg(feature = "block-padding")] | |||
#[cfg_attr(docsrs, doc(cfg(feature = "block-padding")))] | |||
#[inline] | |||
fn decrypt_padded_inout<'inp, 'out, P: Padding<Self::BlockSize>>( | |||
fn decrypt_padded_inout<'out, P: Padding<Self::BlockSize>>( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Technically, removing lifetime argument is a breaking change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, do I need to take any action for this?
Signed-off-by: Jonathan Woollett-Light <jcawl@amazon.co.uk>
Signed-off-by: Jonathan Woollett-Light <jcawl@amazon.co.uk>
I don't know which implementations should be changed. Could you suggest these specific changes or note the implementations to change. |
54a3024
to
a04b302
Compare
This PR got outdated, so I will close it in favor of the tracking issue. |
Sets
missing_debug_implementations
to warn and adds missingstd::fmt::Debug
implementations.When tracing/logging/debugging a program it is common to debug print inputs and outputs of function, to do this generally dependencies need to offer
std::fmt::Debug
implementations.I won't repeat what is written under
missing_debug_implementations
which gives some more explanation.