Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
hpeebles committed Apr 22, 2024
1 parent b838496 commit d10427f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ fn prepare(user_id: UserId, block: bool, state: &RuntimeState) -> Result<Prepare
Err(CannotRemoveSelf)
} else {
let user_to_remove_role = match state.data.members.get_by_user_id(&user_id) {
Some(member_to_remove) => member_to_remove.role.clone(),
Some(member_to_remove) => member_to_remove.role,
None if block => {
if state.data.members.is_blocked(&user_id) {
return Err(Success);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ fn prepare(user_to_remove: UserId, block: bool, state: &RuntimeState) -> Result<
Err(CannotRemoveSelf)
} else {
let user_to_remove_role = match state.data.chat.members.get(&user_to_remove) {
Some(member_to_remove) => member_to_remove.role.value.clone(),
Some(member_to_remove) => member_to_remove.role.value,
None if block => {
if state.data.chat.members.is_blocked(&user_to_remove) {
return Err(Success);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::env::ENV;
use crate::rng::random_string;
use crate::utils::tick_many;
use crate::{client, env, CanisterIds, TestEnv, User};
use crate::{client, CanisterIds, TestEnv, User};
use candid::Principal;
use pocket_ic::PocketIc;
use std::ops::Deref;
Expand Down

0 comments on commit d10427f

Please sign in to comment.