Formatting adapter cfg(feature = "const_fn")] fns aren't const fn's #309
Labels
No labels
breaking
bug
dependencies
good first issue
help wanted
unstable
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-uuid-rs/uuid#309
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Describe the bug
There's a variety of duplication for
#[cfg(feature = "const_fn")]and#[cfg(not(feature = "const_fn"))]in https://github.com/uuid-rs/uuid/blob/master/src/adapter/mod.rs, but none of the former are actuallyconst fns, e.g.github.com/uuid-rs/uuid@c61efa4aac/src/adapter/mod.rs (L83-L85)To Reproduce
Steps to reproduce the behavior:
const fn(0 matches) andcfg(feature = "const_fn")(12 matches)Expected behavior
The
#[cfg(feature = "const_fn")]functions to bepub const fnSpecifications:
masterbranch (but also true onbreaking)oh boy you caught a failed copy-pasta!! 😳
I will get this fixed today...
Edit: currently
breakingbranch is no longer active as its changes were merged back intomaster