Skip to content

Commit f50547b

Browse files
authored
Merge pull request #195 from MarcoIeni/chore-update-to-axum-0-8
chore: update to axum 0.8
2 parents a0fc2ec + 99c9e57 commit f50547b

File tree

3 files changed

+18
-26
lines changed

3 files changed

+18
-26
lines changed

Cargo.lock

+16-23
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ arc-swap = "1.7.1"
3333

3434
# Web
3535
hyper = "1.2.0"
36-
axum = "0.7.4"
36+
axum = "0.8.1"
3737
tower = { version = "0.4", features = ["limit"] }
3838
jsonwebtoken = "9.2.0"
3939
url = "2.3"

src/github/webhook.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use axum::body::Bytes;
55
use axum::extract::FromRequest;
66
use axum::http::request::Parts;
77
use axum::http::{HeaderMap, HeaderValue, StatusCode};
8-
use axum::{async_trait, RequestExt};
8+
use axum::RequestExt;
99
use hmac::{Hmac, Mac};
1010
use octocrab::models::events::payload::{
1111
IssueCommentEventAction, IssueCommentEventPayload, PullRequestEventAction,
@@ -118,7 +118,6 @@ pub struct GitHubWebhook(pub BorsEvent);
118118
const REQUEST_BODY_LIMIT: usize = 10 * 1024 * 1024;
119119

120120
/// Extracts a webhook event from a HTTP request.
121-
#[async_trait]
122121
impl FromRequest<ServerStateRef> for GitHubWebhook {
123122
type Rejection = StatusCode;
124123

0 commit comments

Comments
 (0)