From 40432b5c8310f64c880ffaaad12b7a1a5a3af60b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Capucho?= Date: Fri, 24 Sep 2021 15:07:12 +0100 Subject: [PATCH] Fix dir is empty check when setting WGPU_TRACE_DIR --- voxygen/src/render/renderer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/voxygen/src/render/renderer.rs b/voxygen/src/render/renderer.rs index 820b1353d2..1e13017d6d 100644 --- a/voxygen/src/render/renderer.rs +++ b/voxygen/src/render/renderer.rs @@ -292,7 +292,7 @@ impl Renderer { path.read_dir() .expect("Could not read the directory that is specified by WGPU_TRACE_DIR") .next() - .is_some(), + .is_none(), "WGPU_TRACE_DIR is set to the path \"{}\" which already contains other files", path.display() );