Switch to Rust 2021 (#10170)

* Switch to Rust 2021

* Update trybuild to fix errors
This commit is contained in:
Bastian Köcher authored and GitHub committed 2021-11-04 19:54:48 +01:00
1 parent 9fb9d7b8f0
commit b08d3017a8
245 files changed
+264 -279

No files matched your search

@@ -87,8 +87,6 @@ impl RoundState {
round_state: &report::RoundState<AuthorityId>,
voters: &HashSet<AuthorityId>,
) -> Result<Self, Error> {
use std::convert::TryInto;
let prevotes = &round_state.prevote_ids;
let missing_prevotes = voters.difference(&prevotes).cloned().collect();
@@ -130,8 +128,6 @@ impl ReportedRoundStates {
AuthoritySet: ReportAuthoritySet,
VoterState: ReportVoterState,
{
use std::convert::TryFrom;
let voter_state = voter_state.get().ok_or(Error::EndpointNotReady)?;
let (set_id, current_voters) = authority_set.get();