From 035d16fda547373a9b8fd397020505e3b00524d3 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sat, 11 Dec 2021 00:22:19 -0800 Subject: [PATCH] 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 --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 4f63e50..e1fee40 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -158,7 +158,7 @@ trait IntegerPrivate { fn write_to(self, buf: &mut B) -> &[u8]; } -const DEC_DIGITS_LUT: &'static [u8] = b"\ +const DEC_DIGITS_LUT: &[u8] = b"\ 0001020304050607080910111213141516171819\ 2021222324252627282930313233343536373839\ 4041424344454647484950515253545556575859\