From f2980a8bb45dbf69fc408d05615b022bb888518f Mon Sep 17 00:00:00 2001 From: Alexander <1931331+olksdr@users.noreply.github.com> Date: Wed, 14 Aug 2024 16:09:38 +0200 Subject: [PATCH] fix(beta): Remove the warning of the beta linter (#3931) Following warning was reporter on beta: ``` error: the borrowed expression implements the required traits --> relay-event-normalization/src/trimming.rs:700:48 | 700 | let other = match contexts.get_key(&format!("despacito{i}")).unwrap() { | ^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `format!("despacito{i}")` ``` which does not require taking a reference anymore. --- relay-event-normalization/src/trimming.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/relay-event-normalization/src/trimming.rs b/relay-event-normalization/src/trimming.rs index 8285aebbb3..f3b17ec176 100644 --- a/relay-event-normalization/src/trimming.rs +++ b/relay-event-normalization/src/trimming.rs @@ -697,7 +697,7 @@ mod tests { let contexts = contexts.value().unwrap(); for i in 1..2 { - let other = match contexts.get_key(&format!("despacito{i}")).unwrap() { + let other = match contexts.get_key(format!("despacito{i}")).unwrap() { Context::Other(ref x) => x, _ => panic!("Context has changed type!"), };