diff --git a/qmetaobject/src/qtquickcontrols2.rs b/qmetaobject/src/qtquickcontrols2.rs index 17272abe..373ccb6b 100644 --- a/qmetaobject/src/qtquickcontrols2.rs +++ b/qmetaobject/src/qtquickcontrols2.rs @@ -5,7 +5,7 @@ pub struct QQuickStyle {} impl QQuickStyle { /// Refer to the Qt documentation for QQuickStyle::setStyle - pub fn set_style(style: QString) { - std::env::set_var::<_, String>("QT_QUICK_CONTROLS_STYLE", style.into()); + pub fn set_style(style: &str) { + std::env::set_var("QT_QUICK_CONTROLS_STYLE", style); } }