mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 10:50:00 +00:00
femtovg: Fix warning about deprecated web_sys::set_fill_style
Use set_fill_style_str insterad, it avoids constructing a JSValue from a str.
This commit is contained in:
parent
9449f23967
commit
df4f9b38ee
6 changed files with 7 additions and 14 deletions
|
@ -26,16 +26,7 @@ console_error_panic_hook = { version = "0.1.6", optional = true }
|
|||
js-sys = "0.3.44"
|
||||
wasm-bindgen-futures = { version = "0.4.18" }
|
||||
wasm-bindgen = { version = "0.2.66" }
|
||||
|
||||
[dependencies.web-sys]
|
||||
version = "0.3"
|
||||
features = [
|
||||
'Request',
|
||||
'RequestInit',
|
||||
'RequestMode',
|
||||
'Response',
|
||||
'Window',
|
||||
]
|
||||
web-sys = { workspace = true, features = ["Request", "RequestInit", "RequestMode", "Response", "Window"] }
|
||||
|
||||
#[dev-dependencies]
|
||||
#wasm-bindgen-test = "0.3.13"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue