Commit d1e43e9 1 parent 3c6180a commit d1e43e9 Copy full SHA for d1e43e9
File tree 3 files changed +5
-7
lines changed
3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ impl FeedService {
119
119
Ok ( feed) => Ok ( Feed :: from ( ( url, feed) ) ) ,
120
120
// TODO: handle error
121
121
Err ( err) => Err ( ParserError :: Parse {
122
- url : url . into ( ) ,
122
+ url,
123
123
source : anyhow:: Error :: from ( err) ,
124
124
} ) ,
125
125
}
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ impl MemoryDatastore {
37
37
Self {
38
38
feeds : RwLock :: new (
39
39
TEST_DATA
40
- . into_iter ( )
40
+ . iter ( )
41
41
. map ( |feed| persistence:: types:: FeedSubscription {
42
42
user_id : "me" . into ( ) ,
43
43
url : feed. to_string ( ) ,
Original file line number Diff line number Diff line change @@ -70,12 +70,10 @@ where
70
70
self . set ( AuthenticateFuture :: ServiceCall { service_fut } ) ;
71
71
self . poll ( cx)
72
72
}
73
- Poll :: Ready ( Err ( _) ) => {
74
- return Poll :: Ready ( Ok ( StatusCode :: UNAUTHORIZED . into_response ( ) ) )
75
- }
76
- Poll :: Pending => return Poll :: Pending ,
73
+ Poll :: Ready ( Err ( _) ) => Poll :: Ready ( Ok ( StatusCode :: UNAUTHORIZED . into_response ( ) ) ) ,
74
+ Poll :: Pending => Poll :: Pending ,
77
75
} ,
78
- AuthFutureProj :: ServiceCall { service_fut } => return service_fut. poll ( cx) ,
76
+ AuthFutureProj :: ServiceCall { service_fut } => service_fut. poll ( cx) ,
79
77
}
80
78
}
81
79
}
You can’t perform that action at this time.
0 commit comments