Skip to content

Commit

Permalink
Update examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeMathWalker committed Jan 2, 2024
1 parent e69b928 commit 5896265
Show file tree
Hide file tree
Showing 6 changed files with 679 additions and 588 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pub async fn reject_anonymous<C>(user: &User, next: Next<C>) -> Response
C: IntoFuture<Output=Response>,
{
if let User::Anonymous = user {
return Response::unauthorized().box_body();
return Response::unauthorized();
}
next.into_future().await
}
Loading

0 comments on commit 5896265

Please sign in to comment.