Skip to content
This repository has been archived by the owner on Jul 17, 2023. It is now read-only.

Commit

Permalink
Clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
redraw-dawn committed Jul 7, 2023
1 parent a94f6e1 commit e885c29
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/problem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ impl actix_web::ResponseError for Problem {
}

fn error_response(&self) -> actix_web::HttpResponse {
HttpResponseBuilder::new(self.status_code()).json(&self)
HttpResponseBuilder::new(self.status_code()).json(self)
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/status.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ pub fn status_resource<V: ToString>(version: Option<V>) -> Resource {
let shared_status = Arc::new(status);

web::resource("/status")
.app_data(shared_status.clone())
.app_data(shared_status)
.route(web::get().to(status_handler))
}

0 comments on commit e885c29

Please sign in to comment.