Repository: slint-ui/slint (language: rust)

Issue:
1.9.0 software renderer, femtovg compile errors
### Bug Description

slint = { version = ">=1.9.0", default-features = false, features = ["accessibility", "backend-winit", "compat-1-2", "renderer-software", "std"] }

This set of flags seems to fail for me

lib.rs fails at
return Err(format!("Graphics API use requested by the compile-time enabled renderers don't support that"))

Femtovg gives:
failed to select a version for the requirement `i-slint-renderer-femtovg = "=1.9.0"`
candidate versions found which didn't match: 1.8.0, 1.7.2, 1.7.1, ...
location searched: crates.io index
required by package `slint v1.9.0`

### Reproducible Code (if applicable)

_No response_

### Environment Details

- Slint Version: 1.9.0
- Platform/OS: Windows
- Programming Language: Rust
- Backend/Renderer: Software, femtovg


### Product Impact

_No response_


Discussion / hints:

Fix patch:
diff --git a/internal/backends/winit/lib.rs b/internal/backends/winit/lib.rs
index cf8c273faaf..739a7011ae4 100644
--- a/internal/backends/winit/lib.rs
+++ b/internal/backends/winit/lib.rs
@@ -293,16 +293,16 @@ impl BackendBuilder {
                     return Err(PlatformError::NoPlatform);
                 }
             }
-            (None, Some(requested_graphics_api)) => {
+            (None, Some(_requested_graphics_api)) => {
                 cfg_if::cfg_if! {
                     if #[cfg(enable_skia_renderer)] {
-                        renderer::skia::WinitSkiaRenderer::factory_for_graphics_api(Some(requested_graphics_api))?
+                        renderer::skia::WinitSkiaRenderer::factory_for_graphics_api(Some(_requested_graphics_api))?
                     } else if #[cfg(feature = "renderer-femtovg")] {
                         // If a graphics API was requested, double check that it's GL. FemtoVG doesn't support Metal, etc.
-                        RequestedOpenGLVersion::try_from(requested_graphics_api.clone())?;
+                        RequestedOpenGLVersion::try_from(_requested_graphics_api.clone())?;
                         renderer::femtovg::GlutinFemtoVGRenderer::new_suspended
                     } else {
-                        return Err(format!("Graphics API use requested by the compile-time enabled renderers don't support that"))
+                        return Err(format!("Graphics API use requested by the compile-time enabled renderers don't support that").into())
                     }
                 }
             }


Test patch: