-
Notifications
You must be signed in to change notification settings - Fork 290
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minibytes: make from_static const fn
Summary: This allows constructing Bytes or Text statically. Unfortunately traits cannot have const_fn for now: rust-lang/rust#71971 so we manually write out `from_static` for both types. Differential Revision: D39041222 fbshipit-source-id: 9b2312cfd415c1276485a4c2b4a4216db9c02a64
- Loading branch information
1 parent
e427765
commit f15b0aa
Showing
3 changed files
with
19 additions
and
62 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters