regex icon indicating copy to clipboard operation
regex copied to clipboard

update doc examples to use `once_cell` instead of `lazy_static`

Open vidhanio opened this issue 2 years ago • 2 comments

this change is useful because of the proposed addition of the once_cell api into std. users using the once_cell pattern will find it easier to swap to the std versions when/if they are merged.

vidhanio avatar Jul 20 '22 22:07 vidhanio

also, if wanted i could update bench/src/bench.rs to use once_cell instead of lazy_static as well.

vidhanio avatar Jul 20 '22 22:07 vidhanio

I think I'd prefer to avoid this. I'd rather just wait until the std APIs are available to avoid churn. There's nothing egregiously wrong with lazy_static.

BurntSushi avatar Jul 20 '22 23:07 BurntSushi