Skip to content
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

Clippy fix1 #369

Open
wants to merge 22 commits into
base: master
Choose a base branch
from
Open

Clippy fix1 #369

wants to merge 22 commits into from

Conversation

kwakkel1000
Copy link
Contributor

No description provided.

Copy link

Benchmark for 0f9f2cb

Click to view benchmark
Test Base PR %
Cipher/AES CBC decrypt 295.0±26.78ns 291.2±11.07ns -1.29%
Cipher/AES CBC encrypt 224.1±7.65ns 222.7±5.24ns -0.62%
Cipher/AES CCM decrypt 400.2±11.40ns 422.3±17.40ns +5.52%
Cipher/AES CCM encrypt 385.7±25.05ns 375.9±17.58ns -2.54%
Cipher/AES GCM decrypt 569.8±25.12ns 548.7±21.48ns -3.70%
Cipher/AES GCM encrypt 571.3±41.57ns 566.5±15.75ns -0.84%
Cipher/AES KW decrypt 718.2±17.74ns 686.7±13.51ns -4.39%
Cipher/AES KW encrypt 663.5±25.12ns 632.9±13.58ns -4.61%
Cipher/AES KWP decrypt 724.5±22.80ns 713.2±18.97ns -1.56%
Cipher/AES KWP encrypt 650.7±12.13ns 639.8±14.40ns -1.68%

Copy link

Benchmark for 0b32f1d

Click to view benchmark
Test Base PR %
Cipher/AES CBC decrypt 293.5±11.63ns 292.8±9.12ns -0.24%
Cipher/AES CBC encrypt 223.8±7.77ns 222.6±5.00ns -0.54%
Cipher/AES CCM decrypt 412.6±14.87ns 418.6±15.47ns +1.45%
Cipher/AES CCM encrypt 388.7±12.69ns 397.2±34.21ns +2.19%
Cipher/AES GCM decrypt 564.7±19.94ns 563.4±59.98ns -0.23%
Cipher/AES GCM encrypt 579.0±20.14ns 535.2±22.44ns -7.56%
Cipher/AES KW decrypt 714.7±37.22ns 690.3±43.89ns -3.41%
Cipher/AES KW encrypt 663.2±54.57ns 635.5±19.06ns -4.18%
Cipher/AES KWP decrypt 734.6±18.40ns 719.6±44.48ns -2.04%
Cipher/AES KWP encrypt 663.9±31.71ns 659.6±56.99ns -0.65%

mbedtls-sys/build/config.rs Show resolved Hide resolved
mbedtls/src/cipher/raw/serde.rs Show resolved Hide resolved
// Stable-Rust equivalent of `#[non_exhaustive]` attribute. This
// value should never be used by users of this crate!
#[doc(hidden)]
__Nonexhaustive,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

forget to add #[non_exhaustive] at line 34?

@@ -558,7 +570,8 @@ impl HandshakeContext {
}

pub fn set_authmode(&mut self, am: AuthMode) -> Result<()> {
if self.inner.handshake as *const _ == ::core::ptr::null() {
if self.inner.handshake.is_null() {
//if self.inner.handshake as *const _ == ::core::ptr::null() {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

forget to clean up commented code ?
line 574 & 585 & 610

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants