use const over static

This commit is contained in:
Edward Shen 2019-12-23 22:21:42 -05:00
parent b09f1b96ea
commit f70154e819
Signed by: edward
GPG key ID: F350507060ED6C90
2 changed files with 2 additions and 2 deletions

View file

@ -17,7 +17,7 @@ use std::time::Duration;
mod routes; mod routes;
mod template_args; mod template_args;
static DEFAULT_CONFIG: &[u8] = include_bytes!("../bunbun.default.toml"); const DEFAULT_CONFIG: &[u8] = include_bytes!("../bunbun.default.toml");
#[derive(Debug)] #[derive(Debug)]
#[allow(clippy::enum_variant_names)] #[allow(clippy::enum_variant_names)]

View file

@ -12,7 +12,7 @@ use std::collections::HashMap;
use std::sync::{Arc, RwLock}; use std::sync::{Arc, RwLock};
/// https://url.spec.whatwg.org/#fragment-percent-encode-set /// https://url.spec.whatwg.org/#fragment-percent-encode-set
static FRAGMENT_ENCODE_SET: &AsciiSet = &CONTROLS const FRAGMENT_ENCODE_SET: &AsciiSet = &CONTROLS
.add(b' ') .add(b' ')
.add(b'"') .add(b'"')
.add(b'<') .add(b'<')