Fix unnecessary into calls in iced_renderer::fallback
This commit is contained in:
parent
5137d655e6
commit
a2c897792c
1 changed files with 2 additions and 4 deletions
|
|
@ -208,16 +208,14 @@ where
|
|||
settings: graphics::Settings,
|
||||
compatible_window: W,
|
||||
) -> Result<Self, graphics::Error> {
|
||||
if let Ok(left) = L::new(settings.into(), compatible_window.clone())
|
||||
if let Ok(left) = L::new(settings, compatible_window.clone())
|
||||
.await
|
||||
.map(Self::Left)
|
||||
{
|
||||
return Ok(left);
|
||||
}
|
||||
|
||||
R::new(settings.into(), compatible_window)
|
||||
.await
|
||||
.map(Self::Right)
|
||||
R::new(settings, compatible_window).await.map(Self::Right)
|
||||
}
|
||||
|
||||
fn create_renderer(&self) -> Self::Renderer {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue