mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-22 04:03:04 +00:00
fix: asset warnigns on windows (#3220)
This commit is contained in:
parent
992c2b0b9c
commit
6da7226370
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ impl ToTokens for AssetParser {
|
|||
let option_source = &self.options;
|
||||
|
||||
// generate the asset::new method to deprecate the `./assets/blah.css` syntax
|
||||
let method = if asset.input.is_relative() {
|
||||
let method = if !asset.input.starts_with("/") {
|
||||
quote::quote! { new_relative }
|
||||
} else {
|
||||
quote::quote! { new }
|
||||
|
|
Loading…
Reference in a new issue