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,
|
settings: graphics::Settings,
|
||||||
compatible_window: W,
|
compatible_window: W,
|
||||||
) -> Result<Self, graphics::Error> {
|
) -> 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
|
.await
|
||||||
.map(Self::Left)
|
.map(Self::Left)
|
||||||
{
|
{
|
||||||
return Ok(left);
|
return Ok(left);
|
||||||
}
|
}
|
||||||
|
|
||||||
R::new(settings.into(), compatible_window)
|
R::new(settings, compatible_window).await.map(Self::Right)
|
||||||
.await
|
|
||||||
.map(Self::Right)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn create_renderer(&self) -> Self::Renderer {
|
fn create_renderer(&self) -> Self::Renderer {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue