Skip to content

Commit

Permalink
chore: write the compatibility cache only in release mode
Browse files Browse the repository at this point in the history
  • Loading branch information
romzhong committed Dec 2, 2024
1 parent 64afba4 commit b506100
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions float-pigment-css-macro/src/compatibility_check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ pub(crate) fn compare_enum_cache(
}
}
let next_cache_toml = toml::to_string(&next_cache).unwrap();
if !cfg!(feature = "skip_compare_cache") {
if !cfg!(feature = "skip_compare_cache") && cfg!(profile = "release") {
let mut file = file_creator("enum", &enum_name, EXTENSION, true, true).unwrap();
file.write_all(next_cache_toml.as_bytes())
.unwrap_or_else(|_| {
Expand Down Expand Up @@ -546,7 +546,7 @@ pub(crate) fn compare_struct_cache(
}
}
let next_cache_toml = toml::to_string(&next_cache).unwrap();
if !cfg!(feature = "skip_compare_cache") {
if !cfg!(feature = "skip_compare_cache") && cfg!(profile = "release") {
let mut file = file_creator("struct", &struct_name, EXTENSION, true, true).unwrap();
file.write_all(next_cache_toml.as_bytes())
.unwrap_or_else(|_| {
Expand Down

0 comments on commit b506100

Please sign in to comment.