diff --git a/Cargo.lock b/Cargo.lock index 8823ee2a..ca0de247 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2454,9 +2454,9 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.76" +version = "1.0.78" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95fc56cda0b5c3325f5fbbd7ff9fda9e02bb00bb3dac51252d2f1bfa1cb8cc8c" +checksum = "e2422ad645d89c99f8f3e6b88a9fdeca7fabeac836b1002371c4367c8f984aae" dependencies = [ "unicode-ident", ] @@ -2600,13 +2600,13 @@ dependencies = [ [[package]] name = "regex" -version = "1.10.2" +version = "1.10.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "380b951a9c5e80ddfd6136919eef32310721aa4aacd4889a8d39124b026ab343" +checksum = "b62dbe01f0b06f9d8dc7d49e05a0785f153b00b2c227856282f671e0318c9b15" dependencies = [ "aho-corasick", "memchr", - "regex-automata 0.4.3", + "regex-automata 0.4.4", "regex-syntax 0.8.2", ] @@ -2621,9 +2621,9 @@ dependencies = [ [[package]] name = "regex-automata" -version = "0.4.3" +version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f804c7828047e88b2d32e2d7fe5a105da8ee3264f01902f796c8e067dc2483f" +checksum = "3b7fa1134405e2ec9353fd416b17f8dacd46c473d7d3fd1cf202706a14eb792a" dependencies = [ "aho-corasick", "memchr", @@ -2785,9 +2785,9 @@ dependencies = [ [[package]] name = "shlex" -version = "1.2.0" +version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a7cee0529a6d40f580e7a5e6c495c8fbfe21b7b52795ed4bb5e62cdf92bc6380" +checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" [[package]] name = "simd-adler32" @@ -3529,9 +3529,9 @@ dependencies = [ [[package]] name = "wgpu" -version = "0.19.0" +version = "0.19.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d0b71d2ded29e2161db50ab731d6cb42c037bd7ab94864a98fa66ff36b4721a8" +checksum = "0bfe9a310dcf2e6b85f00c46059aaeaf4184caa8e29a1ecd4b7a704c3482332d" dependencies = [ "arrayvec", "cfg-if", @@ -3580,9 +3580,9 @@ dependencies = [ [[package]] name = "wgpu-hal" -version = "0.19.0" +version = "0.19.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "11f259ceb56727fb097da108d92f8a5cbdb5b74a77f9e396bd43626f67299d61" +checksum = "e3bb47856236bfafc0bc591a925eb036ac19cd987624a447ff353e7a7e7e6f72" dependencies = [ "android_system_properties", "arrayvec", diff --git a/engine/src/gfx.rs b/engine/src/gfx.rs index da62f023..6edaa233 100644 --- a/engine/src/gfx.rs +++ b/engine/src/gfx.rs @@ -293,11 +293,7 @@ impl GfxContext { width: win_width, height: win_height, present_mode: wgpu::PresentMode::Fifo, - desired_maximum_frame_latency: if adapter.get_info().backend == Backend::Dx12 { - 3 - } else { - 2 - }, // TODO: fix when wgpu 0.19.1 is released + desired_maximum_frame_latency: 2, alpha_mode: CompositeAlphaMode::Auto, view_formats: vec![], }; diff --git a/networking/src/connections.rs b/networking/src/connections.rs index c7983da0..e114c96f 100644 --- a/networking/src/connections.rs +++ b/networking/src/connections.rs @@ -275,9 +275,7 @@ mod tests { receiver.recv(&s[..2], |_| panic!("should not be called")); receiver.recv(&s[2..], |_| panic!("should not be called")); receiver.recv(&[1u8; 3], |_| panic!("should not be called")); - receiver.recv(&[2u8; 3], |d| { - assert_eq!(d, vec![1u8, 1u8, 1u8, 2u8, 2u8]) - }); + receiver.recv(&[2u8; 3], |d| assert_eq!(d, vec![1u8, 1u8, 1u8, 2u8, 2u8])); assert_eq!(receiver.buf, vec![2u8]); assert_eq!(receiver.last_frame_size, 0);