utf16_lit
utf16_lit copied to clipboard
Minor readability fixes
I needed the crate for another project and spotted a couple lines that could be simplified. The code should behave the same
Does putting the initial const outside the macro cause issues if you use the macro twice in the same scope?
I doubt it... I'll add a test
And in case I misunderstood - the mangled __UTF16_LIT_PREFIX_THAT_SHOULD_NEVER_CLASH_WITH_OUTER_SCOPE_UTF8 name is still in a small, internal scope. The actual logic is now two layers deep
Ah, CI is failing on the checked_sub not being stable in 1.46.0. Bummer. I'll revert that