File tree Expand file tree Collapse file tree 4 files changed +5
-7
lines changed Expand file tree Collapse file tree 4 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ pub async fn list(req: ConduitRequest) -> AppResult<Json<Value>> {
33
33
invited_by_username : users
34
34
. iter ( )
35
35
. find ( |u| u. id == private. inviter_id )
36
- . ok_or_else ( || internal ( & format ! ( "missing user {}" , private. inviter_id) ) ) ?
36
+ . ok_or_else ( || internal ( format ! ( "missing user {}" , private. inviter_id) ) ) ?
37
37
. login
38
38
. clone ( ) ,
39
39
invitee_id : private. invitee_id ,
@@ -217,7 +217,7 @@ fn prepare_list<B>(
217
217
crate_id : invitation. crate_id ,
218
218
crate_name : crate_names
219
219
. get ( & invitation. crate_id )
220
- . ok_or_else ( || internal ( & format ! ( "missing crate with id {}" , invitation. crate_id) ) ) ?
220
+ . ok_or_else ( || internal ( format ! ( "missing crate with id {}" , invitation. crate_id) ) ) ?
221
221
. clone ( ) ,
222
222
created_at : invitation. created_at ,
223
223
expires_at : invitation. expires_at ( config) ,
Original file line number Diff line number Diff line change @@ -165,9 +165,7 @@ fn handle_error_response(error: &reqwest::Error) -> BoxedAppError {
165
165
GitHub org memberships.",
166
166
) ,
167
167
Some ( Status :: NOT_FOUND ) => not_found ( ) ,
168
- _ => internal ( & format_args ! (
169
- "didn't get a 200 result from github: {error}"
170
- ) ) ,
168
+ _ => internal ( format ! ( "didn't get a 200 result from github: {error}" ) ) ,
171
169
}
172
170
}
173
171
Original file line number Diff line number Diff line change @@ -205,7 +205,7 @@ impl Uploader {
205
205
extra_headers,
206
206
UploadBucket :: Default ,
207
207
)
208
- . map_err ( |e| internal ( & format_args ! ( "failed to upload crate: {e}" ) ) ) ?;
208
+ . map_err ( |e| internal ( format ! ( "failed to upload crate: {e}" ) ) ) ?;
209
209
Ok ( ( ) )
210
210
}
211
211
Original file line number Diff line number Diff line change @@ -327,7 +327,7 @@ impl AppError for InternalAppErrorStatic {
327
327
}
328
328
}
329
329
330
- pub fn internal < S : ToString + ? Sized > ( error : & S ) -> BoxedAppError {
330
+ pub fn internal < S : ToString > ( error : S ) -> BoxedAppError {
331
331
Box :: new ( InternalAppError {
332
332
description : error. to_string ( ) ,
333
333
} )
You can’t perform that action at this time.
0 commit comments