Skip to content

Commit b506100

Browse files
author
romzhong
committed
chore: write the compatibility cache only in release mode
1 parent 64afba4 commit b506100

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
@@ -442,7 +442,7 @@ pub(crate) fn compare_enum_cache(
442442
}
443443
}
444444
let next_cache_toml = toml::to_string(&next_cache).unwrap();
445-
if !cfg!(feature = "skip_compare_cache") {
445+
if !cfg!(feature = "skip_compare_cache") && cfg!(profile = "release") {
446446
let mut file = file_creator("enum", &enum_name, EXTENSION, true, true).unwrap();
447447
file.write_all(next_cache_toml.as_bytes())
448448
.unwrap_or_else(|_| {
@@ -546,7 +546,7 @@ pub(crate) fn compare_struct_cache(
546546
}
547547
}
548548
let next_cache_toml = toml::to_string(&next_cache).unwrap();
549-
if !cfg!(feature = "skip_compare_cache") {
549+
if !cfg!(feature = "skip_compare_cache") && cfg!(profile = "release") {
550550
let mut file = file_creator("struct", &struct_name, EXTENSION, true, true).unwrap();
551551
file.write_all(next_cache_toml.as_bytes())
552552
.unwrap_or_else(|_| {

0 commit comments

Comments
 (0)