From 20e55a871bbe3533731313b522b6248ec1ca1b9b Mon Sep 17 00:00:00 2001 From: hanbings Date: Wed, 3 Jul 2024 17:06:14 -0400 Subject: [PATCH] Make milli use edition 2021 --- milli/Cargo.toml | 2 +- milli/src/snapshot_tests.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/milli/Cargo.toml b/milli/Cargo.toml index fd7bde99b..b2cebb95d 100644 --- a/milli/Cargo.toml +++ b/milli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "milli" -edition = "2018" +edition = "2021" publish = false version.workspace = true diff --git a/milli/src/snapshot_tests.rs b/milli/src/snapshot_tests.rs index d79003747..6635ab2f4 100644 --- a/milli/src/snapshot_tests.rs +++ b/milli/src/snapshot_tests.rs @@ -535,7 +535,7 @@ pub fn convert_snap_to_hash_if_needed<'snap>( #[macro_export] macro_rules! make_db_snap_from_iter { - ($index:ident, $name:ident, |$vars:pat| $push:block) => {{ + ($index:ident, $name:ident, |$vars:pat_param| $push:block) => {{ let rtxn = $index.read_txn().unwrap(); let iter = $index.$name.iter(&rtxn).unwrap(); let mut snap = String::new();