diff --git a/src/main.rs b/src/main.rs index 9495c09..c6125e2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -34,9 +34,8 @@ use crate::context::{ImageFormat, ImageGet, ImageRemove}; use crate::storage::{Backend, DatabaseBackend, StorageBackend}; use crate::traits::DatabaseLinker; - -static UUID_REGEX: &str = "^[0-9a-fA-F]{8}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{12}$"; - +static UUID_REGEX: &str = + "^[0-9a-fA-F]{8}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{12}$"; #[derive(Deserialize, StateData, StaticResponseExtender)] struct PathExtractor { @@ -55,11 +54,7 @@ fn router(backend: storage::StorageBackend, config: StateConfig) -> Result() .with_query_string_extractor::() .to_async(routes::get_file); @@ -67,7 +62,7 @@ fn router(backend: storage::StorageBackend, config: StateConfig) -> Result() .to_async(routes::remove_file); }))