Allow Masonry to compile in release mode (#431)

Cc @xStrom for the CI change

Cc @PoignardAzur for the Masonry changes
This commit is contained in:
Daniel McNab 2024-07-17 10:52:37 +01:00 committed by GitHub
parent f913a3882b
commit 7a28babdd6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 1 deletions

View File

@ -112,6 +112,11 @@ jobs:
- name: cargo clippy (auxiliary)
run: cargo hack clippy --workspace --locked --each-feature --optional-deps --tests --benches --examples -- -D warnings
# Verify that we can build in release mode
# TODO: Find a way for this to share artifacts with the above job?
- name: cargo clippy (release)
run: cargo clippy --release --workspace --locked --all-targets -- -D warnings
clippy-stable-wasm:
name: cargo clippy (wasm32)
runs-on: ubuntu-latest
@ -139,6 +144,11 @@ jobs:
- name: cargo clippy (auxiliary)
run: cargo hack clippy --workspace ${{ env.NO_WASM_PKGS }} --locked --target wasm32-unknown-unknown --each-feature --optional-deps --tests --benches --examples -- -D warnings
# Verify that we can build in release mode
# TODO: Find a way for this to share artifacts with the above job?
- name: cargo clippy (release)
run: cargo clippy --release --workspace ${{ env.NO_WASM_PKGS }} --locked --target wasm32-unknown-unknown --all-targets -- -D warnings
test-stable:
name: cargo test
runs-on: ${{ matrix.os }}

View File

@ -889,7 +889,8 @@ impl<W: Widget> WidgetPod<W> {
.local_paint_rect
.union(new_size.to_rect() + state.paint_insets);
if cfg!(debug_assertions) {
#[cfg(debug_assertions)]
{
for child_id in widget.children_ids() {
let child_id = child_id.to_raw();
let (child_state, _) = state_token