Fix unnecessary into calls in iced_renderer::fallback

This commit is contained in:
Héctor Ramón Jiménez 2024-03-22 07:12:46 +01:00
parent 5137d655e6
commit a2c897792c
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -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 {