Fix compilation with Rust 1.56.

This commit is contained in:
Nick Mathewson 2022-05-17 14:58:36 -04:00
parent 5de1b93195
commit c70916c0d9
1 changed files with 2 additions and 3 deletions

View File

@ -492,9 +492,7 @@ impl<R: Runtime> GetCertsState<R> {
}
};
let outcome;
(self.consensus, outcome) = match unvalidated.check_signature(&self.certs[..]) {
let (new_consensus, outcome) = match unvalidated.check_signature(&self.certs[..]) {
Ok(validated) => (C::Validated(validated), Ok(())),
Err(cause) => (
C::Failed,
@ -504,6 +502,7 @@ impl<R: Runtime> GetCertsState<R> {
}),
),
};
self.consensus = new_consensus;
outcome
}