diff --git a/src/main.rs b/src/main.rs index 646208d..81d5a78 100644 --- a/src/main.rs +++ b/src/main.rs @@ -17,7 +17,7 @@ use std::time::Duration; mod routes; mod template_args; -static DEFAULT_CONFIG: &[u8] = include_bytes!("../bunbun.default.toml"); +const DEFAULT_CONFIG: &[u8] = include_bytes!("../bunbun.default.toml"); #[derive(Debug)] #[allow(clippy::enum_variant_names)] diff --git a/src/routes.rs b/src/routes.rs index beb9289..40b7fb3 100644 --- a/src/routes.rs +++ b/src/routes.rs @@ -12,7 +12,7 @@ use std::collections::HashMap; use std::sync::{Arc, RwLock}; /// 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'<')