utils: correctly increment ids on first call
This commit is contained in:
parent
8c126eeb80
commit
34667b791a
|
@ -20,6 +20,7 @@ macro_rules! id_gen {
|
||||||
while ids.iter().any(|k| *k == id) {
|
while ids.iter().any(|k| *k == id) {
|
||||||
id += 1;
|
id += 1;
|
||||||
}
|
}
|
||||||
|
id += 1;
|
||||||
Some(id)
|
Some(id)
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue