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

@@ -255,7 +255,6 @@ impl<B: BlockT> ExtraRequests<B> {
/// Get some key metrics.
pub(crate) fn metrics(&self) -> Metrics {
use std::convert::TryInto;
Metrics {
pending_requests: self.pending_requests.len().try_into().unwrap_or(std::u32::MAX),
active_requests: self.active_requests.len().try_into().unwrap_or(std::u32::MAX),