Fix dir is empty check when setting WGPU_TRACE_DIR

This commit is contained in:
João Capucho 2021-09-24 15:07:12 +01:00
parent 83fed7a2bc
commit 34eb58cded
No known key found for this signature in database
GPG Key ID: 1AD5CE7CCAEBDA21

View File

@ -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()
);