Skip to content

Commit 6e89c21

Browse files
committed
chore: use debug_assertions to determine if is release mode
1 parent 2fd35d4 commit 6e89c21

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

float-pigment-css-macro/src/compatibility_check.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ pub(crate) fn compare_enum_cache(
441441
}
442442
}
443443
}
444-
if !cfg!(feature = "skip_compare_cache") && cfg!(profile = "release") {
444+
if !cfg!(feature = "skip_compare_cache") && !cfg!(debug_assertions) {
445445
let next_cache_toml = toml::to_string(&next_cache).unwrap();
446446
let mut file = file_creator("enum", &enum_name, EXTENSION, true, true).unwrap();
447447
file.write_all(next_cache_toml.as_bytes())
@@ -545,7 +545,7 @@ pub(crate) fn compare_struct_cache(
545545
}
546546
}
547547
}
548-
if !cfg!(feature = "skip_compare_cache") && cfg!(profile = "release") {
548+
if !cfg!(feature = "skip_compare_cache") && !cfg!(debug_assertions) {
549549
let next_cache_toml = toml::to_string(&next_cache).unwrap();
550550
let mut file = file_creator("struct", &struct_name, EXTENSION, true, true).unwrap();
551551
file.write_all(next_cache_toml.as_bytes())

0 commit comments

Comments
 (0)