Move to edition 2021 altogether

This commit is contained in:
2022-05-01 12:00:10 +02:00
parent 3b9b908460
commit 38b3b226cc
3 changed files with 6 additions and 2 deletions

View File

@@ -16,6 +16,10 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
- Simple benchmark to track the rough performance penalty incurred by dependency tracking.
### Changed
- The project now targets edition 2021
## [0.1.2] - 2021-05-27
### Added

View File

@@ -2,7 +2,7 @@
name = "tracing-mutex"
version = "0.1.2"
authors = ["Bert Peters <bert@bertptrs.nl>"]
edition = "2018"
edition = "2021"
license = "MIT OR Apache-2.0"
documentation = "https://docs.rs/tracing-mutex"
categories = ["concurrency", "development-tools::debugging"]

View File

@@ -115,7 +115,7 @@ where
if lb < ub {
// This edge might introduce a cycle, need to recompute the topological sort
let mut visited = IntoIterator::into_iter([x, y]).collect();
let mut visited = [x, y].into_iter().collect();
let mut delta_f = Vec::new();
let mut delta_b = Vec::new();