Skip to content

Pid to str no result #295

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

flihp
Copy link
Collaborator

@flihp flihp commented Jul 16, 2025

this resolves #293

flihp added 2 commits July 16, 2025 09:31
Previously if `test` was defined then `no_std` was not. This makes the
`std` feature weird when we run `cargo test` because the standard
library is enabled while our `std` feature is not. This change makes
this consistent: `cargo test` will be `no_std` while `cargo test
--feature std` will not.
This ensures that all of the methods we use to create PlatformId
instances check for validity. This allows us to return the string
representation directly instead of through a `Result`. We still check
the validity of the resultant `&str` but we now panic if it is invalid.
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.

does PlatformId::to_str need to return an error?
1 participant