From d084fc8e7b1f441cd21d1901631db793c2b8c8de Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 26 Mar 2024 18:11:54 +1100 Subject: [PATCH] chore(deps): bump the lsp group with 4 updates (#50) --- Cargo.lock | 16 ++++++++-------- crates/typos-lsp/Cargo.toml | 4 ++-- crates/typos-lsp/src/state.rs | 6 +++--- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 26b762d..57e04d5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -89,9 +89,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.80" +version = "1.0.81" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ad32ce52e4161730f7098c077cd2ed6229b5804ccf99e5366be1ab72a98b4e1" +checksum = "0952808a6c2afd1aa8947271f3a60f1a6763c7b912d210184c5149b5cf147247" [[package]] name = "async-trait" @@ -789,9 +789,9 @@ dependencies = [ [[package]] name = "matchit" -version = "0.7.3" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0e7465ac9959cc2b1404e8e2367b43684a6d13790fe23056cc8c6c5a6b7bcb94" +checksum = "56e8fcd7bd6025a951597d6ba2f8e48a121af7e262f2b52a006a09c8d61f9304" [[package]] name = "memchr" @@ -947,9 +947,9 @@ dependencies = [ [[package]] name = "regex" -version = "1.10.3" +version = "1.10.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b62dbe01f0b06f9d8dc7d49e05a0785f153b00b2c227856282f671e0318c9b15" +checksum = "c117dbdfde9c8308975b6a18d71f3f385c89461f7b3fb054288ecf2a2058ba4c" dependencies = [ "aho-corasick", "memchr", @@ -1053,9 +1053,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.114" +version = "1.0.115" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c5f09b1bd632ef549eaa9f60a1f8de742bdbc698e6cee2095fc84dde5f549ae0" +checksum = "12dc5c46daa8e9fdf4f5e71b6cf9a53f2487da0e86e55808e2d35539666497dd" dependencies = [ "itoa", "ryu", diff --git a/crates/typos-lsp/Cargo.toml b/crates/typos-lsp/Cargo.toml index 7beaf7b..a758e19 100644 --- a/crates/typos-lsp/Cargo.toml +++ b/crates/typos-lsp/Cargo.toml @@ -17,9 +17,9 @@ typos = "0.10" typos-cli = "1.16" serde = { version = "1.0", features = ["derive"] } ignore = "0.4.20" -matchit = "0.7.1" +matchit = "0.8.0" shellexpand = "3.1.0" -regex = "1.10.2" +regex = "1.10.4" once_cell = "1.19.0" [dev-dependencies] diff --git a/crates/typos-lsp/src/state.rs b/crates/typos-lsp/src/state.rs index 16b424a..3d5ec69 100644 --- a/crates/typos-lsp/src/state.rs +++ b/crates/typos-lsp/src/state.rs @@ -43,7 +43,7 @@ impl<'s> BackendState<'s> { .uri .to_file_path() .map_err(|_| anyhow!("Cannot convert uri {} to file path", folder.uri))?; - let route = format!("{}{}", url_path_sanitised(&folder.uri), "/*p"); + let route = format!("{}{}", url_path_sanitised(&folder.uri), "/{*p}"); self.router .insert_instance(&route, &path, self.config.as_deref())?; } @@ -52,7 +52,7 @@ impl<'s> BackendState<'s> { // when there is no workspace folder #[cfg(windows)] for drive in crate::windows::get_drives() { - let route = format!("/{}%3A/*p", &drive); + let route = format!("/{}%3A/{{*p}}", &drive); self.router.insert_instance( &route, &PathBuf::from(format!("{}:\\", &drive)), @@ -62,7 +62,7 @@ impl<'s> BackendState<'s> { #[cfg(not(windows))] { - let route = "/*p"; + let route = "/{*p}"; self.router .insert_instance(route, &PathBuf::from("/"), self.config.as_deref())?; }