mirror of
https://github.com/penpot/penpot.git
synced 2026-10-29 05:50:35 +00:00
🔧 Remove wasm warnings (#12291)
* 🔧 Drop emscripten verbose linker output from debug builds * 🔧 Fix render-wasm warnings from Rust 1.99
This commit is contained in:
parent
89c6bad8cd
commit
a44c8aba88
@ -136,7 +136,7 @@ case "$CARGO_PROFILE_DIR" in
|
||||
# -gseparate-dwarf
|
||||
# -gsplit-dwarf
|
||||
# -gsource-map
|
||||
export EMCC_CFLAGS="-g -sASSERTIONS=1 -sVERBOSE=1 $EMCC_CFLAGS";
|
||||
export EMCC_CFLAGS="-g -sASSERTIONS=1 $EMCC_CFLAGS";
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
@ -314,10 +314,7 @@ fn set_flex_multi_span(
|
||||
// Distribute the space between flex tracks in proportion to the division
|
||||
for track in tracks[start..end].iter_mut() {
|
||||
if track.track_type == GridTrackType::Flex {
|
||||
let new_size = alloc.clamp(track.size, track.max_size);
|
||||
let aloc = new_size - track.size;
|
||||
dist -= aloc;
|
||||
track.size = new_size;
|
||||
track.size = alloc.clamp(track.size, track.max_size);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -5,7 +5,6 @@ use crate::{
|
||||
utils::Browser,
|
||||
};
|
||||
|
||||
use core::f32;
|
||||
use macros::ToJs;
|
||||
use skia_safe::textlayout::{RectHeightStyle, RectWidthStyle};
|
||||
use skia_safe::{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user