summaryrefslogtreecommitdiffstats
path: root/renderer
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-03-22 07:12:46 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-03-22 07:12:46 +0100
commita2c897792ccb8f91a8479c1eca9146c439e9173b (patch)
treee9874e14c8570f7ef1d2cab0a9eedb4d8b288994 /renderer
parent5137d655e6bbd29581fc1469d0385515113f2999 (diff)
downloadiced-a2c897792ccb8f91a8479c1eca9146c439e9173b.tar.gz
iced-a2c897792ccb8f91a8479c1eca9146c439e9173b.tar.bz2
iced-a2c897792ccb8f91a8479c1eca9146c439e9173b.zip
Fix unnecessary `into` calls in `iced_renderer::fallback`
Diffstat (limited to 'renderer')
-rw-r--r--renderer/src/fallback.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/renderer/src/fallback.rs b/renderer/src/fallback.rs
index 28e73dd8..8daab74f 100644
--- a/renderer/src/fallback.rs
+++ b/renderer/src/fallback.rs
@@ -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 {