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:
Tobias Hunger 2024-10-16 11:14:15 +02:00 committed by Tobias Hunger
parent 9449f23967
commit df4f9b38ee
6 changed files with 7 additions and 14 deletions

View file

@ -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"