index : static-web-server.git

ascending towards madness

author Jose Quintana <joseluisquintana20@gmail.com> 2021-01-13 14:23:38.0 +00:00:00
committer Jose Quintana <joseluisquintana20@gmail.com> 2021-01-13 14:23:38.0 +00:00:00
commit
6d3e2d19f8b3f6212020595d067935dc7ac2bb13 [patch]
tree
6b568754437f10b4311db4d0e3a887457a7b7ea6
parent
7265f6b93fbd5bd41b615e189d7b3b099f0414f4
download
6d3e2d19f8b3f6212020595d067935dc7ac2bb13.tar.gz

refactor: remove redundant 'static lifetime on constants



Diff

 src/core/cache.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/core/cache.rs b/src/core/cache.rs
index 9512619..685f527 100644
--- a/src/core/cache.rs
+++ b/src/core/cache.rs
@@ -1,5 +1,5 @@
const CACHE_EXT_ONE_HOUR: [&'static str; 4] = ["atom", "json", "rss", "xml"];
const CACHE_EXT_ONE_YEAR: [&'static str; 30] = [
const CACHE_EXT_ONE_HOUR: [&str; 4] = ["atom", "json", "rss", "xml"];
const CACHE_EXT_ONE_YEAR: [&str; 30] = [
    "bmp", "bz2", "css", "map", "doc", "gif", "gz", "htc", "ico", "jpg", "mp3", "mp4", "ogg",
    "ogv", "pdf", "png", "rar", "tar", "tgz", "wav", "weba", "webm", "webp", "woff", "zip", "jpeg",
    "js", "mjs", "rtf", "woff2",