From b8ed5b5e9f099284c4ef3f5160ea861e4dca2e38 Mon Sep 17 00:00:00 2001 From: SeaDve Date: Mon, 6 Mar 2023 21:48:37 +0800 Subject: [PATCH] glib-macros: qualify to_value This prevent having to import ToValue or the prelude --- glib-macros/src/value_delegate_derive.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/glib-macros/src/value_delegate_derive.rs b/glib-macros/src/value_delegate_derive.rs index a37be46c2d5f..e80d3826236e 100644 --- a/glib-macros/src/value_delegate_derive.rs +++ b/glib-macros/src/value_delegate_derive.rs @@ -132,7 +132,7 @@ pub fn impl_value_delegate(input: ValueDelegateInput) -> syn::Result) -> #crate_ident::value::Value { if let Some(this) = s { - Some(&#delegate_value).to_value() + #crate_ident::value::ToValue::to_value(&Some(&#delegate_value)) } else { #crate_ident::value::ToValueOptional::to_value_optional(None::<&#delegated_ty>) } @@ -155,11 +155,11 @@ pub fn impl_value_delegate(input: ValueDelegateInput) -> syn::Result #crate_ident::value::Value { let this = self; - #delegate_value.to_value() + #crate_ident::value::ToValue::to_value(&#delegate_value) } fn value_type(&self) -> #crate_ident::types::Type { let this = self; - #delegate_value.value_type() + #crate_ident::value::ToValue::value_type(&#delegate_value) } }