Skip to content

Commit

Permalink
chore: clippy
Browse files Browse the repository at this point in the history
Signed-off-by: David Dal Busco <[email protected]>
  • Loading branch information
peterpeterparker committed Nov 16, 2023
1 parent c5ee638 commit eb75ea7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared/src/controllers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ pub fn assert_max_number_of_controllers(
pub fn assert_no_anonymous_controller(controllers_ids: &[ControllerId]) -> Result<(), String> {
let has_anonymous = controllers_ids
.iter()
.any(|controller_id| principal_anonymous(controller_id.clone()));
.any(|controller_id| principal_anonymous(*controller_id));

match has_anonymous {
true => Err("Anonymous controller not allowed.".to_string()),
Expand Down

0 comments on commit eb75ea7

Please sign in to comment.