Skip to content

Commit

Permalink
feat: use debug_assertions instead of custom feature
Browse files Browse the repository at this point in the history
  • Loading branch information
de-sh committed Jan 16, 2025
1 parent 35efb17 commit c11d19e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/handlers/http/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c11d19e

Please sign in to comment.