Make milli use edition 2021

This commit is contained in:
hanbings 2024-07-03 17:06:14 -04:00
parent b64b4ab6ca
commit 20e55a871b
No known key found for this signature in database
GPG Key ID: AA9CB43124987769
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
[package]
name = "milli"
edition = "2018"
edition = "2021"
publish = false
version.workspace = true

View File

@ -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();