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:
parent
4d0a8c78c2
commit
035d16fda5
|
@ -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\
|
||||||
|
|
Loading…
Reference in New Issue