clippy: Resolve const_static_lifetime

TEST=bin/clippy

Change-Id: I51453ae1a6b6c6bf9c105a41352fd95500f76b05
Reviewed-on: https://chromium-review.googlesource.com/1566662
Commit-Ready: David Tolnay <dtolnay@chromium.org>
Tested-by: David Tolnay <dtolnay@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
This commit is contained in:
David Tolnay 2019-04-12 18:42:13 -07:00 committed by chrome-bot
parent d0d46495a8
commit a5aa8239a5
3 changed files with 2 additions and 3 deletions

View file

@ -13,7 +13,6 @@ cd ..
SUPPRESS=(
# To be resolved.
const_static_lifetime
extra_unused_lifetimes
into_iter_on_array
let_and_return

View file

@ -29,7 +29,7 @@ use std::thread;
const EVENT_QUEUE_SIZE: u16 = 64;
const STATUS_QUEUE_SIZE: u16 = 64;
const QUEUE_SIZES: &'static [u16] = &[EVENT_QUEUE_SIZE, STATUS_QUEUE_SIZE];
const QUEUE_SIZES: &[u16] = &[EVENT_QUEUE_SIZE, STATUS_QUEUE_SIZE];
#[derive(Debug)]
pub enum InputError {

View file

@ -33,7 +33,7 @@ impl SimpleRng {
fn uniform_sample_ascii_alphanumeric(
b: Result<u8, std::io::Error>,
) -> Option<Result<char, std::io::Error>> {
const ASCII_CHARS: &'static [u8] = b"\
const ASCII_CHARS: &[u8] = b"\
ABCDEFGHIJKLMNOPQRSTUVWXYZ\
abcdefghijklmnopqrstuvwxyz\
0123456789";