Skip to content

Commit

Permalink
run cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ashneverdawn committed Nov 11, 2024
1 parent 92b44ab commit 8a8dc65
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
1 change: 0 additions & 1 deletion extensions/warp-ipfs/src/store/community.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,6 @@ impl CommunityDocument {
permissions.insert(CommunityPermission::EditChannels, IndexSet::new());
permissions.insert(CommunityPermission::DeleteChannels, IndexSet::new());


//We don't add CreateInvites permission since by default we leave it unrestricted.
permissions.insert(CommunityPermission::EditInvites, IndexSet::new());
permissions.insert(CommunityPermission::DeleteInvites, IndexSet::new());
Expand Down
12 changes: 6 additions & 6 deletions extensions/warp-ipfs/tests/community.rs
Original file line number Diff line number Diff line change
Expand Up @@ -612,11 +612,7 @@ mod test {
.grant_community_role(community.id(), role.id(), did_b.clone())
.await?;
instance_a
.grant_community_permission(
community.id(),
CommunityPermission::EditInvites,
role.id(),
)
.grant_community_permission(community.id(), CommunityPermission::EditInvites, role.id())
.await?;

let mut invite = instance_a
Expand Down Expand Up @@ -1108,7 +1104,11 @@ mod test {
.grant_community_role(community.id(), role.id(), did_b.clone())
.await?;
instance_a
.grant_community_permission(community.id(), CommunityPermission::EditDescription, role.id())
.grant_community_permission(
community.id(),
CommunityPermission::EditDescription,
role.id(),
)
.await?;

let new_description = Some("description".to_string());
Expand Down
2 changes: 1 addition & 1 deletion warp/src/raygun/community.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ pub enum CommunityPermission {
CreateRoles,
EditRoles,
DeleteRoles,

GrantRoles,
RevokeRoles,

Expand Down

0 comments on commit 8a8dc65

Please sign in to comment.