Skip to content

Commit

Permalink
fix(beta): Remove the warning of the beta linter (#3931)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
olksdr committed Aug 14, 2024
1 parent 06767af commit f2980a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion relay-event-normalization/src/trimming.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!"),
};
Expand Down

0 comments on commit f2980a8

Please sign in to comment.