From 0f788b904346fb30e01a2eb9557b02e7a084b76c Mon Sep 17 00:00:00 2001 From: Fletcher Nichol Date: Fri, 18 Aug 2023 18:42:52 -0600 Subject: [PATCH] style(dal): remove needless borrows from prior PR Signed-off-by: Fletcher Nichol --- lib/dal/src/func.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/dal/src/func.rs b/lib/dal/src/func.rs index 23fe80ac8b..6ad9675954 100644 --- a/lib/dal/src/func.rs +++ b/lib/dal/src/func.rs @@ -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(),