diff --git a/CHANGELOG.md b/CHANGELOG.md index 06233fd..6e3b625 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/Cargo.toml b/Cargo.toml index 47bcb36..e378f48 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "tracing-mutex" version = "0.1.2" authors = ["Bert Peters "] -edition = "2018" +edition = "2021" license = "MIT OR Apache-2.0" documentation = "https://docs.rs/tracing-mutex" categories = ["concurrency", "development-tools::debugging"] diff --git a/src/graph.rs b/src/graph.rs index 8ce3832..a98b022 100644 --- a/src/graph.rs +++ b/src/graph.rs @@ -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();