fix: asset warnigns on windows (#3220)

This commit is contained in:
Miles Murgaw 2024-11-15 13:52:05 -05:00 committed by GitHub
parent 992c2b0b9c
commit 6da7226370
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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