Skip to content

Commit

Permalink
Merge pull request #1077 from rmnscnce/glib-macros-disambiguate-trait…
Browse files Browse the repository at this point in the history
…-assoc-types

glib-macros: Disambiguate TryFrom<usize>::Error for DerivedPropertiesEnum
  • Loading branch information
sdroege committed Apr 12, 2023
2 parents bd8457f + 174e9e8 commit e8e8318
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion glib-macros/src/properties.rs
Expand Up @@ -620,7 +620,7 @@ fn expand_properties_enum(props: &[PropDesc]) -> TokenStream2 {
impl std::convert::TryFrom<usize> for DerivedPropertiesEnum {
type Error = usize;

fn try_from(item: usize) -> ::core::result::Result<Self, Self::Error> {
fn try_from(item: usize) -> ::core::result::Result<Self, <Self as std::convert::TryFrom<usize>>::Error> {
match item {
#(#indices => ::core::result::Result::Ok(Self::#properties),)*
_ => ::core::result::Result::Err(item)
Expand Down

0 comments on commit e8e8318

Please sign in to comment.