Skip to content

Commit

Permalink
feat(rust): remove unnecessary clone
Browse files Browse the repository at this point in the history
  • Loading branch information
tuler committed Nov 7, 2024
1 parent 4530740 commit 5d11138
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
let mut status = "accept";
loop {
println!("Sending finish");
let response = object! {"status" => status.clone()};
let response = object! {"status" => status};
let request = hyper::Request::builder()
.method(hyper::Method::POST)
.header(hyper::header::CONTENT_TYPE, "application/json")
Expand Down

0 comments on commit 5d11138

Please sign in to comment.