Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consolidate UUID from slice functionality into TryFrom implementation #239

Merged

Conversation

petekubiak
Copy link
Collaborator

While working on making get and set generic for all attributes (#155) I noticed there were multiple "from slice" implementations for the Uuid type, which would panic if the slice length didn't match what was expected.

I've consolidated these with a single TryFrom implementation instead.

@petekubiak petekubiak self-assigned this Jan 14, 2025
@petekubiak petekubiak requested review from lulf and jamessizeland and removed request for lulf January 14, 2025 15:31
@petekubiak
Copy link
Collaborator Author

/test

Copy link
Member

@lulf lulf left a comment

Choose a reason for hiding this comment

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

Thanks!

@lulf lulf merged commit 9058c06 into embassy-rs:main Jan 14, 2025
3 checks passed
@alexmoon
Copy link

FYI, there are also (rarely used) 32-bit Bluetooth UUIDs.

Copy link
Collaborator

@jamessizeland jamessizeland left a comment

Choose a reason for hiding this comment

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

Too late but looks great!

@jamessizeland
Copy link
Collaborator

FYI, there are also (rarely used) 32-bit Bluetooth UUIDs.

Worth adding an issue for?

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.

4 participants