Skip to content

Commit

Permalink
Remove unused variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
partim committed Jan 16, 2024
1 parent 35e3406 commit f688895
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,7 @@ impl<'a, P: ProcessRun> PubPoint<'a, P> {
manifest_bytes.clone(), self.run.validation.strict
) {
Ok(manifest) => manifest,
Err(err) => {
Err(_) => {
self.metrics.invalid_manifests += 1;
warn!(
"{}: failed to decode manifest.",
Expand Down Expand Up @@ -948,7 +948,7 @@ impl<'a, P: ProcessRun> PubPoint<'a, P> {
// Decode and validate the CRL.
let mut crl = match Crl::decode(crl_bytes.clone()) {
Ok(crl) => crl,
Err(err) => {
Err(_) => {
self.metrics.invalid_crls += 1;
warn!("{}: failed to decode CRL.", crl_uri);
return Ok(None)
Expand Down Expand Up @@ -1080,7 +1080,7 @@ impl<'a, P: ProcessRun> PubPoint<'a, P> {
stored_manifest.manifest().clone(), self.run.validation.strict
) {
Ok(manifest) => manifest,
Err(err) => {
Err(_) => {
self.metrics.invalid_manifests += 1;
warn!(
"{}: failed to decode manifest.",
Expand Down Expand Up @@ -1131,7 +1131,7 @@ impl<'a, P: ProcessRun> PubPoint<'a, P> {
// Decode and validate the CRL.
let mut crl = match Crl::decode(stored_manifest.crl().clone()) {
Ok(crl) => crl,
Err(err) => {
Err(_) => {
self.metrics.invalid_manifests += 1;
self.metrics.invalid_crls += 1;
warn!("{}: failed to decode CRL.", crl_uri);
Expand Down Expand Up @@ -1277,7 +1277,7 @@ impl<'a, P: ProcessRun> PubPoint<'a, P> {
) -> Result<(), Failed> {
let cert = match Cert::decode(content) {
Ok(cert) => cert,
Err(err) => {
Err(_) => {
manifest.metrics.invalid_certs += 1;
warn!("{}: failed to decode certificate.", uri);
return Ok(())
Expand Down Expand Up @@ -1392,7 +1392,7 @@ impl<'a, P: ProcessRun> PubPoint<'a, P> {
content, self.run.validation.strict
) {
Ok(roa) => roa,
Err(err) => {
Err(_) => {
manifest.metrics.invalid_roas += 1;
warn!("{}: failed to decode ROA.", uri);
return Ok(())
Expand Down Expand Up @@ -1459,7 +1459,7 @@ impl<'a, P: ProcessRun> PubPoint<'a, P> {
content, self.run.validation.strict
) {
Ok(obj) => obj,
Err(err) => {
Err(_) => {
manifest.metrics.invalid_gbrs += 1;
warn!("{}: failed to decode GBR.", uri);
return Ok(())
Expand Down

0 comments on commit f688895

Please sign in to comment.