mirror of
https://github.com/servo/servo.git
synced 2025-07-23 23:33:43 +01:00
replaced .map
with .and_then
and removed .flatten()
(#33631)
Signed-off-by: mercybassey <udohmercy911@gmail.com>
This commit is contained in:
parent
634dbd2d78
commit
43d559a1c2
1 changed files with 1 additions and 2 deletions
|
@ -91,8 +91,7 @@ impl WebrenderExternalImageApi for WGPUExternalImages {
|
|||
let data = if let Some(present_buffer) = context_data
|
||||
.swap_chain
|
||||
.as_ref()
|
||||
.map(|swap_chain| swap_chain.data.as_ref())
|
||||
.flatten()
|
||||
.and_then(|swap_chain| swap_chain.data.as_ref())
|
||||
{
|
||||
present_buffer.slice().to_vec()
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue