chore(deps): update rust crate urlpattern to 0.3 (v2) (#1607)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: FabianLars <fabianlars@fabianlars.de>
This commit is contained in:
renovate[bot]
2024-09-02 15:37:44 +02:00
committed by GitHub
parent b4c95b25df
commit de04935b2f
4 changed files with 19 additions and 6 deletions
+2 -2
View File
@@ -18,7 +18,7 @@ tauri-plugin = { workspace = true, features = [ "build" ] }
schemars = { workspace = true }
serde = { workspace = true }
url = { workspace = true }
urlpattern = "0.2"
urlpattern = "0.3"
regex = "1"
[dependencies]
@@ -28,7 +28,7 @@ tauri = { workspace = true }
thiserror = { workspace = true }
tokio = { version = "1", features = ["sync", "macros"] }
tauri-plugin-fs = { path = "../fs", version = "2.0.0-rc.1" }
urlpattern = "0.2"
urlpattern = "0.3"
regex = "1"
http = "1"
reqwest = { version = "0.12", default-features = false }
+1
View File
@@ -59,6 +59,7 @@ impl From<HttpScopeEntry> for scope::Entry {
url: urlpattern::UrlPattern::parse(
urlpattern::UrlPatternInit::parse_constructor_string::<regex::Regex>(&url, None)
.unwrap(),
Default::default(),
)
.unwrap(),
}
+1 -1
View File
@@ -30,7 +30,7 @@ fn parse_url_pattern(s: &str) -> Result<UrlPattern, urlpattern::quirks::Error> {
{
init.pathname.replace("*".to_string());
}
UrlPattern::parse(init)
UrlPattern::parse(init, Default::default())
}
impl<'de> Deserialize<'de> for Entry {