From fa12beba8ea2e94cf04cfb87f27a1aee7ade2aa4 Mon Sep 17 00:00:00 2001 From: dierbei <1628652790@qq.com> Date: Tue, 5 Sep 2023 11:32:39 +0000 Subject: [PATCH] add explicit lifetime Signed-off-by: dierbei <1628652790@qq.com> --- crates/router/src/files.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/router/src/files.rs b/crates/router/src/files.rs index 70b9819e..ebbe4dd5 100644 --- a/crates/router/src/files.rs +++ b/crates/router/src/files.rs @@ -22,8 +22,8 @@ pub struct Files<'t> { } impl<'t> Files<'t> { - const PUBLIC_ASSETS_FOLDER: &str = "public"; - const DEFAULT_EXTENSIONS: [&str; 2] = ["js", "wasm"]; + const PUBLIC_ASSETS_FOLDER: &'static str = "public"; + const DEFAULT_EXTENSIONS: [&'static str; 2] = ["js", "wasm"]; /// Initializes a new files instance. It will detect /// relevant resources for WWS like the public folder.