Skip to content

Commit

Permalink
chore: fix clippy warning
Browse files Browse the repository at this point in the history
Remove unnecessary TryInto conversion for an infallible one.
  • Loading branch information
ereslibre committed Jan 24, 2024
1 parent 991c315 commit f58a8a3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/server/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@ pub async fn serve(serve_options: ServeOptions) -> Result<Server> {
let server = HttpServer::new(move || {
// Initializes the app data for handlers
let app_data: Data<AppData> = Data::new(
<ServeOptions as TryInto<AppData>>::try_into(serve_options.clone())
.expect("failed initializing server"),
serve_options.clone().into()
);

let mut app = App::new()
Expand Down

0 comments on commit f58a8a3

Please sign in to comment.