Skip to content

Commit

Permalink
style(dal): remove needless borrows from prior PR
Browse files Browse the repository at this point in the history
Signed-off-by: Fletcher Nichol <[email protected]>
  • Loading branch information
fnichol committed Aug 19, 2023
1 parent 2ab6728 commit 0f788b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/dal/src/func.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,13 @@ impl Func {
let mut new_unique_name;
loop {
new_unique_name = format!("{}{}", self.name(), generate_unique_id(4));
if Self::find_by_name(&ctx, &new_unique_name).await?.is_none() {
if Self::find_by_name(ctx, &new_unique_name).await?.is_none() {
break;
};
}

let mut new_func = Self::new(
&ctx,
ctx,
new_unique_name,
*self.backend_kind(),
*self.backend_response_type(),
Expand Down

0 comments on commit 0f788b9

Please sign in to comment.