Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
phiresky committed Jul 5, 2023
1 parent aae8e61 commit 19c89ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/db_views_actor/src/community_moderator_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ impl CommunityModeratorView {
find_community_id: CommunityId,
find_person_id: PersonId,
) -> Result<bool, Error> {
use lemmy_db_schema::schema::community_moderator::dsl::{community_id, community_moderator, person_id};
let conn = &mut get_conn(pool).await?;
use lemmy_db_schema::schema::community_moderator::dsl::*;
select(exists(
community_moderator
.filter(community_id.eq(find_community_id))
Expand Down
2 changes: 1 addition & 1 deletion crates/db_views_actor/src/person_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ impl PersonView {
}

pub async fn is_admin(pool: &DbPool, person_id: PersonId) -> Result<bool, Error> {
use schema::person::dsl::*;
use schema::person::dsl::{admin, id, person};
let conn = &mut get_conn(pool).await?;
let is_admin = person
.filter(id.eq(person_id))
Expand Down

0 comments on commit 19c89ea

Please sign in to comment.