Skip to content

Commit

Permalink
Fix Build Issue When Using DeriveActiveEnum
Browse files Browse the repository at this point in the history
  • Loading branch information
anshap1719 committed Oct 8, 2023
1 parent 59368d7 commit bc821fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sea-orm-macros/src/derives/active_enum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ impl ActiveEnum {
fn try_get_by<I: sea_orm::ColIdx>(res: &sea_orm::QueryResult, index: I) -> std::result::Result<Vec<Self>, sea_orm::TryGetError> {
<<Self as sea_orm::ActiveEnum>::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| <Self as sea_orm::ActiveEnum>::try_from_value(&value).map_err(Into::into))
.collect()
}
}
Expand Down

0 comments on commit bc821fb

Please sign in to comment.