utils: correctly increment ids on first call

This commit is contained in:
Victor Brekenfeld 2022-01-14 20:38:25 +01:00 committed by Victoria Brekenfeld
parent 8c126eeb80
commit 34667b791a
1 changed files with 1 additions and 0 deletions

View File

@ -20,6 +20,7 @@ macro_rules! id_gen {
while ids.iter().any(|k| *k == id) {
id += 1;
}
id += 1;
Some(id)
},
);