diff --git a/Cargo.toml b/Cargo.toml index 013d9ac3d..d00da1746 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -142,9 +142,6 @@ arrow = "53.0.0" assets-url = "https://github.com/parseablehq/console/releases/download/v0.9.16/build.zip" assets-sha1 = "cb9af17fc1af07e590e839fc0ef4db18c323fc48" -[features] -debug = [] - [profile.release-lto] inherits = "release" lto = "fat" diff --git a/src/handlers/http/mod.rs b/src/handlers/http/mod.rs index 00b7e50e8..471383600 100644 --- a/src/handlers/http/mod.rs +++ b/src/handlers/http/mod.rs @@ -56,7 +56,7 @@ pub fn metrics_path() -> String { } pub(crate) fn cross_origin_config() -> Cors { - if !CONFIG.options.cors || cfg!(feature = "debug") { + if !CONFIG.options.cors || cfg!(debug_assertions) { Cors::permissive().block_on_origin_mismatch(false) } else { Cors::default().block_on_origin_mismatch(false)