File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -327,7 +327,7 @@ mod tests {
327327 type ResponseBody = Body ;
328328 type Future = BoxFuture < ' static , Result < Request < B > , Response < Self :: ResponseBody > > > ;
329329
330- fn authorize ( & mut self , mut request : Request < B > ) -> Self :: Future {
330+ fn authorize ( & mut self , request : Request < B > ) -> Self :: Future {
331331 Box :: pin ( async move {
332332 let authorized = request
333333 . headers ( )
@@ -338,8 +338,6 @@ mod tests {
338338 . unwrap_or ( false ) ;
339339
340340 if authorized {
341- let user_id = UserId ( "6969" . to_owned ( ) ) ;
342- request. extensions_mut ( ) . insert ( user_id) ;
343341 Ok ( request)
344342 } else {
345343 Err ( Response :: builder ( )
@@ -351,9 +349,6 @@ mod tests {
351349 }
352350 }
353351
354- #[ derive( Clone , Debug ) ]
355- struct UserId ( String ) ;
356-
357352 #[ tokio:: test]
358353 async fn require_async_auth_works ( ) {
359354 let mut service = ServiceBuilder :: new ( )
You can’t perform that action at this time.
0 commit comments