diff --git a/sea-orm-macros/src/derives/active_enum.rs b/sea-orm-macros/src/derives/active_enum.rs index db4d5f6e4..f163275f2 100644 --- a/sea-orm-macros/src/derives/active_enum.rs +++ b/sea-orm-macros/src/derives/active_enum.rs @@ -342,7 +342,7 @@ impl ActiveEnum { fn try_get_by(res: &sea_orm::QueryResult, index: I) -> std::result::Result, sea_orm::TryGetError> { <::Value as sea_orm::ActiveEnumValue>::try_get_vec_by(res, index)? .into_iter() - .map(|value| Self::try_from_value(&value).map_err(Into::into)) + .map(|value| ::try_from_value(&value).map_err(Into::into)) .collect() } }