Resolve redundant_static_lifetimes clippy lint

error: constants have by default a `'static` lifetime
       --> src/lib.rs:161:24
        |
    161 | const DEC_DIGITS_LUT: &'static [u8] = b"\
        |                       -^^^^^^^----- help: consider removing `'static`: `&[u8]`
        |
        = note: `-D clippy::redundant-static-lifetimes` implied by `-D clippy::all`
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes
This commit is contained in:
David Tolnay 2021-12-11 00:22:19 -08:00
parent 4d0a8c78c2
commit 035d16fda5
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ trait IntegerPrivate<B> {
fn write_to(self, buf: &mut B) -> &[u8]; fn write_to(self, buf: &mut B) -> &[u8];
} }
const DEC_DIGITS_LUT: &'static [u8] = b"\ const DEC_DIGITS_LUT: &[u8] = b"\
0001020304050607080910111213141516171819\ 0001020304050607080910111213141516171819\
2021222324252627282930313233343536373839\ 2021222324252627282930313233343536373839\
4041424344454647484950515253545556575859\ 4041424344454647484950515253545556575859\