diff options
Diffstat (limited to 'src/utils')
| -rw-r--r-- | src/utils/id.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/utils/id.rs b/src/utils/id.rs index 3f8a2a7d..06f48394 100644 --- a/src/utils/id.rs +++ b/src/utils/id.rs @@ -11,7 +11,9 @@ pub struct IdCounter { impl IdCounter { pub const fn new() -> Self { Self { - value: AtomicU32::new(0), + // Start from 1 to reduce the possibility that some other code that uses these IDs will + // get confused. + value: AtomicU32::new(1), } } |
