Skip to content

Commit 29b52f9

Browse files
committed
Deploying to master from @ d1ff3838b807cd4a04fd68154d90a75ea423fa00 🚀
1 parent 0c2a7e7 commit 29b52f9

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

‎doc/search-index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎doc/src/wgpu/backend/direct.rs.html

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2452,9 +2452,6 @@
24522452
<span id="2450">2450</span>
24532453
<span id="2451">2451</span>
24542454
<span id="2452">2452</span>
2455-
<span id="2453">2453</span>
2456-
<span id="2454">2454</span>
2457-
<span id="2455">2455</span>
24582455
</pre><pre class="rust"><code><span class="kw">use crate</span>::{
24592456
AdapterInfo, BindGroupDescriptor, BindGroupLayoutDescriptor, BindingResource, BufferBinding,
24602457
CommandEncoderDescriptor, ComputePassDescriptor, ComputePipelineDescriptor,
@@ -4158,10 +4155,7 @@
41584155
MapMode::Write =&gt; wgc::device::HostMap::Write,
41594156
},
41604157
callback: wgc::resource::BufferMapCallback::from_rust(Box::new(|status| {
4161-
<span class="kw">let </span>res = <span class="kw">match </span>status {
4162-
wgc::resource::BufferMapAsyncStatus::Success =&gt; <span class="prelude-val">Ok</span>(()),
4163-
<span class="kw">_ </span>=&gt; <span class="prelude-val">Err</span>(<span class="kw">crate</span>::BufferAsyncError),
4164-
};
4158+
<span class="kw">let </span>res = status.map_err(|<span class="kw">_</span>| <span class="kw">crate</span>::BufferAsyncError);
41654159
callback(res);
41664160
})),
41674161
};

0 commit comments

Comments
 (0)