Skip to content

Ensure that unique IDs are never 0#4

Merged
mahkoh merged 1 commit intomasterfrom
jorth/unique-id-0
Jan 15, 2026
Merged

Ensure that unique IDs are never 0#4
mahkoh merged 1 commit intomasterfrom
jorth/unique-id-0

Conversation

@mahkoh
Copy link
Owner

@mahkoh mahkoh commented Jan 15, 2026

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request ensures that unique object IDs start from 1 instead of 0 by initializing next_object_id to 1 in the state builder.

Changes:

  • Initialize next_object_id to Cell::new(1) instead of using the default value (0)
  • Update documentation to clarify that unique IDs are never 0

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
wl-proxy/src/state/builder.rs Changes initialization of next_object_id from Default::default() to Cell::new(1)
wl-proxy/src/object.rs Adds documentation clarifying that unique IDs are never 0

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mahkoh mahkoh merged commit 453b008 into master Jan 15, 2026
12 checks passed
@mahkoh mahkoh deleted the jorth/unique-id-0 branch January 15, 2026 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants