From 894d17b29b23cc45cfd408e693923a7af3d4390a Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Wed, 1 Feb 2023 11:12:28 +0100 Subject: refactor(tvix/nix-compat): const is always 'static Change-Id: If33bbf47a6cc376f2c0935ea4331a819223b2f00 Reviewed-on: https://cl.tvl.fyi/c/depot/+/7993 Tested-by: BuildkiteCI Autosubmit: flokli Reviewed-by: tazjin --- tvix/nix-compat/src/nixbase32.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tvix') diff --git a/tvix/nix-compat/src/nixbase32.rs b/tvix/nix-compat/src/nixbase32.rs index 39aa4f1d5461..28c9e07d2e60 100644 --- a/tvix/nix-compat/src/nixbase32.rs +++ b/tvix/nix-compat/src/nixbase32.rs @@ -11,7 +11,7 @@ use std::fmt::Write; use thiserror::Error; -const ALPHABET: &'static [u8; 32] = b"0123456789abcdfghijklmnpqrsvwxyz"; +const ALPHABET: &[u8; 32] = b"0123456789abcdfghijklmnpqrsvwxyz"; /// Errors that can occur while decoding nixbase32-encoded data. #[derive(Debug, Eq, PartialEq, Error)] -- cgit 1.4.1