Skip to content

Commit 70b5c3b

Browse files
committed
server: Fix new clippy lint
1 parent 654949b commit 70b5c3b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/svix-server/src/v1/endpoints/attempt.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ async fn list_attempts_by_endpoint(
413413
.into_iter()
414414
.map(|mut attempt| {
415415
if !with_content {
416-
attempt.response = "{}".to_owned()
416+
"{}".clone_into(&mut attempt.response)
417417
}
418418

419419
attempt
@@ -507,7 +507,7 @@ async fn list_attempts_by_msg(
507507
.into_iter()
508508
.map(|mut attempt| {
509509
if !with_content {
510-
attempt.response = "{}".to_owned()
510+
"{}".clone_into(&mut attempt.response)
511511
}
512512

513513
attempt

0 commit comments

Comments
 (0)