mirror of https://github.com/linebender/xilem
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:
parent
f913a3882b
commit
7a28babdd6
|
@ -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 }}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue