Skip to content

Commit b8ed5b5

Browse files
committed
glib-macros: qualify to_value
This prevent having to import ToValue or the prelude
1 parent 27c7cd3 commit b8ed5b5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

glib-macros/src/value_delegate_derive.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ pub fn impl_value_delegate(input: ValueDelegateInput) -> syn::Result<proc_macro:
132132
impl #crate_ident::value::ToValueOptional for #ident {
133133
fn to_value_optional(s: Option<&Self>) -> #crate_ident::value::Value {
134134
if let Some(this) = s {
135-
Some(&#delegate_value).to_value()
135+
#crate_ident::value::ToValue::to_value(&Some(&#delegate_value))
136136
} else {
137137
#crate_ident::value::ToValueOptional::to_value_optional(None::<&#delegated_ty>)
138138
}
@@ -155,11 +155,11 @@ pub fn impl_value_delegate(input: ValueDelegateInput) -> syn::Result<proc_macro:
155155
impl #crate_ident::value::ToValue for #ident {
156156
fn to_value(&self) -> #crate_ident::value::Value {
157157
let this = self;
158-
#delegate_value.to_value()
158+
#crate_ident::value::ToValue::to_value(&#delegate_value)
159159
}
160160
fn value_type(&self) -> #crate_ident::types::Type {
161161
let this = self;
162-
#delegate_value.value_type()
162+
#crate_ident::value::ToValue::value_type(&#delegate_value)
163163
}
164164
}
165165

0 commit comments

Comments
 (0)