on master help sign in
Bump dependencies
5a60989Blaž Hrastnik
Cargo.lock+14−14
@@ -13,9 +13,9 @@ dependencies = [
13
13
14[[package]]
14[[package]]
15name = "anyhow"
15name = "anyhow"
16−version = "1.0.55"
16+version = "1.0.56"
17source = "registry+https://github.com/rust-lang/crates.io-index"
17source = "registry+https://github.com/rust-lang/crates.io-index"
18−checksum = "159bb86af3a200e19a068f4224eae4c8bb2d0fa054c7e5d1cacd5cef95e684cd"
18+checksum = "4361135be9122e0870de935d7c439aef945b9f9ddd4199a553b5270b49c82a27"
19
19
20[[package]]
20[[package]]
21name = "arc-swap"
21name = "arc-swap"
@@ -25,9 +25,9 @@ checksum = "c5d78ce20460b82d3fa150275ed9d55e21064fc7951177baacf86a145c4a4b1f"
25
25
26[[package]]
26[[package]]
27name = "autocfg"
27name = "autocfg"
28−version = "1.0.1"
28+version = "1.1.0"
29source = "registry+https://github.com/rust-lang/crates.io-index"
29source = "registry+https://github.com/rust-lang/crates.io-index"
30−checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a"
30+checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa"
31
31
32[[package]]
32[[package]]
33name = "bitflags"
33name = "bitflags"
@@ -293,9 +293,9 @@ dependencies = [
293
293
294[[package]]
294[[package]]
295name = "getrandom"
295name = "getrandom"
296−version = "0.2.4"
296+version = "0.2.5"
297source = "registry+https://github.com/rust-lang/crates.io-index"
297source = "registry+https://github.com/rust-lang/crates.io-index"
298−checksum = "418d37c8b1d42553c93648be529cb70f920d3baf8ef469b74b9638df426e0b4c"
298+checksum = "d39cd93900197114fa1fcb7ae84ca742095eed9442088988ae74fa744e930e77"
299dependencies = [
299dependencies = [
300 "cfg-if",
300 "cfg-if",
301 "libc",
301 "libc",
@@ -562,9 +562,9 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
562
562
563[[package]]
563[[package]]
564name = "libc"
564name = "libc"
565−version = "0.2.117"
565+version = "0.2.119"
566source = "registry+https://github.com/rust-lang/crates.io-index"
566source = "registry+https://github.com/rust-lang/crates.io-index"
567−checksum = "e74d72e0f9b65b5b4ca49a346af3976df0f9c61d550727f349ecd559f251a26c"
567+checksum = "1bf2e165bb3457c8e098ea76f3e3bc9db55f87aa90d52d0e6be741470916aaa4"
568
568
569[[package]]
569[[package]]
570name = "libloading"
570name = "libloading"
@@ -665,9 +665,9 @@ dependencies = [
665
665
666[[package]]
666[[package]]
667name = "ntapi"
667name = "ntapi"
668−version = "0.3.6"
668+version = "0.3.7"
669source = "registry+https://github.com/rust-lang/crates.io-index"
669source = "registry+https://github.com/rust-lang/crates.io-index"
670−checksum = "3f6bb902e437b6d86e03cce10a7e2af662292c5dfef23b65899ea3ac9354ad44"
670+checksum = "c28774a7fd2fbb4f0babd8237ce554b73af68021b5f695a3cebd6c59bac0980f"
671dependencies = [
671dependencies = [
672 "winapi",
672 "winapi",
673]
673]
@@ -788,9 +788,9 @@ dependencies = [
788
788
789[[package]]
789[[package]]
790name = "rand"
790name = "rand"
791−version = "0.8.4"
791+version = "0.8.5"
792source = "registry+https://github.com/rust-lang/crates.io-index"
792source = "registry+https://github.com/rust-lang/crates.io-index"
793−checksum = "2e7573632e6454cf6b99d7aac4ccca54be06da05aca2ef7423d22d27d4d4bcd8"
793+checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404"
794dependencies = [
794dependencies = [
795 "rand_core",
795 "rand_core",
796]
796]
@@ -806,9 +806,9 @@ dependencies = [
806
806
807[[package]]
807[[package]]
808name = "redox_syscall"
808name = "redox_syscall"
809−version = "0.2.10"
809+version = "0.2.11"
810source = "registry+https://github.com/rust-lang/crates.io-index"
810source = "registry+https://github.com/rust-lang/crates.io-index"
811−checksum = "8383f39639269cde97d255a32bdb68c047337295414940c68bdd30c2e13203ff"
811+checksum = "8380fe0152551244f0747b1bf41737e0f8a74f97a14ccefd1148187271634f3c"
812dependencies = [
812dependencies = [
813 "bitflags",
813 "bitflags",
814]
814]
helix-term/src/commands/dap.rs+2−2
@@ -190,7 +190,7 @@ pub fn dap_start_impl(
190 let config = doc
190 let config = doc
191 .language_config()
191 .language_config()
192 .and_then(|config| config.debugger.as_ref())
192 .and_then(|config| config.debugger.as_ref())
193− .ok_or(anyhow!("No debug adapter available for language"))?;
193+ .ok_or_else(|| anyhow!("No debug adapter available for language"))?;
194
194
195 let result = match socket {
195 let result = match socket {
196 Some(socket) => block_on(Client::tcp(socket, 0)),
196 Some(socket) => block_on(Client::tcp(socket, 0)),
@@ -220,7 +220,7 @@ pub fn dap_start_impl(
220 Some(name) => config.templates.iter().find(|t| t.name == name),
220 Some(name) => config.templates.iter().find(|t| t.name == name),
221 None => config.templates.get(0),
221 None => config.templates.get(0),
222 }
222 }
223− .ok_or(anyhow!("No debug config with given name"))?;
223+ .ok_or_else(|| anyhow!("No debug config with given name"))?;
224
224
225 let mut args: HashMap<&str, Value> = HashMap::new();
225 let mut args: HashMap<&str, Value> = HashMap::new();
226
226