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

Update for new lints arriving in 1.72 stable #416

Merged
merged 1 commit into from
Sep 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
toolchain: ${{ matrix.rust }}
components: clippy
- uses: r7kamura/rust-problem-matchers@v1
- run: cargo +${{ matrix.rust }} clippy --all --all-features -- -D warnings `${{ matrix.rust == 'beta' }} && echo "-Aclippy::incorrect_clone_impl_on_copy_type"`
- run: cargo +${{ matrix.rust }} clippy --all --all-features -- -D warnings -Aclippy::incorrect_clone_impl_on_copy_type

build:
runs-on: ubuntu-22.04
Expand Down
16 changes: 8 additions & 8 deletions dcap/types/src/certification_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ mod test {
let mut cert_data = [0u8; MIN_CERT_DATA_SIZE];
cert_data[0] = 5;
let certification_data = CertificationData::try_from(cert_data.as_slice()).unwrap();
let CertificationData::PckCertificateChain(cert_chain) = certification_data else {
let CertificationData::PckCertificateChain(cert_chain) = certification_data else {
panic!("expected a PckCertChain");
};
let cert_iter = cert_chain.into_iter();
Expand All @@ -453,7 +453,7 @@ mod test {
cert_data.extend(cert);

let certification_data = CertificationData::try_from(cert_data.as_slice()).unwrap();
let CertificationData::PckCertificateChain(cert_chain) = certification_data else {
let CertificationData::PckCertificateChain(cert_chain) = certification_data else {
panic!("expected a PckCertChain");
};
let cert_iter = cert_chain.into_iter();
Expand Down Expand Up @@ -486,7 +486,7 @@ mod test {
cert_chain.splice(2..2, size_bytes);

let certification_data = CertificationData::try_from(cert_chain.as_slice()).unwrap();
let CertificationData::PckCertificateChain(cert_chain) = certification_data else {
let CertificationData::PckCertificateChain(cert_chain) = certification_data else {
panic!("expected a PckCertChain");
};
let cert_iter = cert_chain.into_iter();
Expand All @@ -512,7 +512,7 @@ mod test {
cert_data.extend(pem);

let certification_data = CertificationData::try_from(cert_data.as_slice()).unwrap();
let CertificationData::PckCertificateChain(cert_chain) = certification_data else {
let CertificationData::PckCertificateChain(cert_chain) = certification_data else {
panic!("expected a PckCertChain");
};
let cert_iter = cert_chain.into_iter();
Expand Down Expand Up @@ -543,7 +543,7 @@ mod test {
cert_data.extend(pem);

let certification_data = CertificationData::try_from(cert_data.as_slice()).unwrap();
let CertificationData::PckCertificateChain(cert_chain) = certification_data else {
let CertificationData::PckCertificateChain(cert_chain) = certification_data else {
panic!("expected a PckCertChain");
};
let cert_iter = cert_chain.into_iter();
Expand Down Expand Up @@ -574,7 +574,7 @@ mod test {
cert_data.extend(pem);

let certification_data = CertificationData::try_from(cert_data.as_slice()).unwrap();
let CertificationData::PckCertificateChain(cert_chain) = certification_data else {
let CertificationData::PckCertificateChain(cert_chain) = certification_data else {
panic!("expected a PckCertChain");
};
let cert_iter = cert_chain.into_iter();
Expand Down Expand Up @@ -607,7 +607,7 @@ mod test {
cert_data.extend(key);

let certification_data = CertificationData::try_from(cert_data.as_slice()).unwrap();
let CertificationData::PckCertificateChain(cert_chain) = certification_data else {
let CertificationData::PckCertificateChain(cert_chain) = certification_data else {
panic!("expected a PckCertChain");
};
let cert_iter = cert_chain.into_iter();
Expand Down Expand Up @@ -646,7 +646,7 @@ mod test {
cert_chain.splice(2..2, size_bytes);

let certification_data = CertificationData::try_from(cert_chain.as_slice()).unwrap();
let CertificationData::PckCertificateChain(cert_chain) = certification_data else {
let CertificationData::PckCertificateChain(cert_chain) = certification_data else {
panic!("expected a PckCertChain");
};
let cert_iter = cert_chain.into_iter();
Expand Down
Loading