Skip to content

Commit

Permalink
chore: minor fixes for clippy
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Zak <[email protected]>
  • Loading branch information
rjzak authored and npmccallum committed Jun 16, 2022
1 parent 0142712 commit dce0719
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/crypto/openssl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ impl super::PrivateKey for RS256PrivateKey {

Ok(super::SigData {
signature: arr_from_bn(&s),
modulus: arr_from_bn(&*m),
modulus: arr_from_bn(m),
exponent,
q1: arr_from_bn(&*q1),
q2: arr_from_bn(&*q2),
Expand Down
2 changes: 1 addition & 1 deletion src/page/class.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use crate::page::{Flags, SecInfo};
/// page.
#[repr(u8)]
#[non_exhaustive]
#[derive(Copy, Clone, Debug, PartialEq)]
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
pub enum Class {
/// SGX Enclave Control Structure (SECS)
Secs = 0,
Expand Down
2 changes: 1 addition & 1 deletion src/signature/hasher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use core::num::NonZeroU32;
use core::slice::from_raw_parts;

/// Input length is not a multiple of the page size
#[derive(Copy, Clone, Debug, PartialEq)]
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
pub struct InvalidSize(());

/// Hashes an enclave producing a measurement
Expand Down
2 changes: 1 addition & 1 deletion src/ssa.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pub use xsave::XSave;

/// Section 38.9.1.1, Table 38-9
#[non_exhaustive]
#[derive(Copy, Clone, Debug, PartialEq)]
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
pub enum ExitType {
Hardware,
Software,
Expand Down

0 comments on commit dce0719

Please sign in to comment.