diff --git a/src/api.rs b/src/api.rs index e5eb3f4..c11ae47 100644 --- a/src/api.rs +++ b/src/api.rs @@ -10,7 +10,7 @@ use std::net::SocketAddr; use http::HeaderValue; use tower_http::cors::CorsLayer; -const layer = CorsLayer::new().allow_origin( +const layer: CorsLayer = CorsLayer::new().allow_origin( "https://tutorial.ponylang.io".parse::().unwrap(), );