diff options
author | 2024-03-22 07:12:46 +0100 | |
---|---|---|
committer | 2024-03-22 07:12:46 +0100 | |
commit | a2c897792ccb8f91a8479c1eca9146c439e9173b (patch) | |
tree | e9874e14c8570f7ef1d2cab0a9eedb4d8b288994 /renderer | |
parent | 5137d655e6bbd29581fc1469d0385515113f2999 (diff) | |
download | iced-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.rs | 6 |
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 { |