From 34667b791afeff63bd36407e7db9e4716b87a62f Mon Sep 17 00:00:00 2001 From: Victor Brekenfeld Date: Fri, 14 Jan 2022 20:38:25 +0100 Subject: [PATCH] utils: correctly increment ids on first call --- src/utils/ids.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/ids.rs b/src/utils/ids.rs index ce4178d..b7b1e33 100644 --- a/src/utils/ids.rs +++ b/src/utils/ids.rs @@ -20,6 +20,7 @@ macro_rules! id_gen { while ids.iter().any(|k| *k == id) { id += 1; } + id += 1; Some(id) }, );