False positive for 'string_lit_as_bytes' in conjunction with 'env!' #5619
Labels
C-bug
Category: Clippy is not doing the correct thing
E-needs-test
Call for participation: writing tests
good-first-issue
These issues are a good way to get started with Clippy
I-suggestion-causes-error
Issue: The suggestions provided by this Lint cause an ICE/error when applied
T-macros
Type: Issues with macros and macro expansion
Hello all, I've found a false positive for a lint:
clippy 0.0.212 (7ebd87a7a 2020-05-08)
A binary literal can't be used with the env! macro and the suggestion to fix it obviously doesn't work. In this case I would say that calling
as_bytes()
is the proper thing to do.I've tested whether or not this is a general macro problem, but that doesn't seem to be the case:
The text was updated successfully, but these errors were encountered: