Skip to content

Commit

Permalink
Use Bytes:from_static
Browse files Browse the repository at this point in the history
  • Loading branch information
petertodd committed Feb 18, 2025
1 parent 2a11b03 commit 70ad884
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ fn do_get_favicon() -> Response<Full<Bytes>> {
Response::builder()
.status(StatusCode::OK)
.header(http::header::CONTENT_TYPE, "image/vnd.microsoft.icon")
.body(Full::new(Bytes::from(&include_bytes!("favicon.ico")[..])))
.body(Full::new(Bytes::from_static(include_bytes!("favicon.ico"))))
.unwrap()
}

Expand Down

0 comments on commit 70ad884

Please sign in to comment.