@@ -164,9 +164,7 @@ impl FromStr for DataSource {
164
164
path => {
165
165
let path = PathBuf :: from ( path) ;
166
166
if path. is_dir ( ) {
167
- Ok ( Self :: Prebuilt {
168
- path : PathBuf :: from ( path) ,
169
- } )
167
+ Ok ( Self :: Prebuilt { path } )
170
168
} else {
171
169
Err (
172
170
"--src must be a path to an existing directory, `in-tree` or `production`"
@@ -201,7 +199,7 @@ fn main() {
201
199
env. init ( ) ;
202
200
203
201
if let Err ( e) = run ( ) {
204
- error ! ( "{:?}" , e ) ;
202
+ error ! ( "{e :?}" ) ;
205
203
std:: process:: exit ( 1 ) ;
206
204
}
207
205
}
@@ -257,7 +255,7 @@ fn run() -> Result<(), Error> {
257
255
bail ! ( "person already in the repo: {}" , github_name) ;
258
256
}
259
257
260
- let file = format ! ( "people/{}.toml" , github_name ) ;
258
+ let file = format ! ( "people/{github_name }.toml" ) ;
261
259
std:: fs:: write (
262
260
& file,
263
261
toml:: to_string_pretty ( & PersonToAdd {
@@ -278,7 +276,7 @@ fn run() -> Result<(), Error> {
278
276
. as_bytes ( ) ,
279
277
) ?;
280
278
281
- info ! ( "written data to {}" , file ) ;
279
+ info ! ( "written data to {file}" ) ;
282
280
}
283
281
Cli :: StaticApi { ref dest } => {
284
282
let dest = PathBuf :: from ( dest) ;
@@ -312,7 +310,7 @@ fn run() -> Result<(), Error> {
312
310
}
313
311
}
314
312
if let Email :: Present ( email) = person. email ( ) {
315
- println ! ( "email: {}" , email ) ;
313
+ println ! ( "email: {email}" ) ;
316
314
}
317
315
println ! ( ) ;
318
316
@@ -352,7 +350,7 @@ fn run() -> Result<(), Error> {
352
350
println ! ( " (none)" ) ;
353
351
} else {
354
352
for ( repo, perms) in bors_permissions {
355
- println ! ( " - {}" , repo ) ;
353
+ println ! ( " - {repo}" ) ;
356
354
if perms. review ( ) {
357
355
println ! ( " - review" ) ;
358
356
}
@@ -373,7 +371,7 @@ fn run() -> Result<(), Error> {
373
371
println ! ( " (none)" ) ;
374
372
} else {
375
373
for key in other_permissions {
376
- println ! ( " - {}" , key ) ;
374
+ println ! ( " - {key}" ) ;
377
375
}
378
376
}
379
377
}
@@ -399,7 +397,7 @@ fn run() -> Result<(), Error> {
399
397
}
400
398
println ! ( "{} ({}):" , team. name( ) , team. kind( ) ) ;
401
399
if let Some ( parent) = team. subteam_of ( ) {
402
- println ! ( " parent team: {}" , parent ) ;
400
+ println ! ( " parent team: {parent}" ) ;
403
401
}
404
402
405
403
println ! ( " members: " ) ;
@@ -418,7 +416,7 @@ fn run() -> Result<(), Error> {
418
416
let mut emails = list. emails ( ) . iter ( ) . collect :: < Vec < _ > > ( ) ;
419
417
emails. sort ( ) ;
420
418
for email in emails {
421
- println ! ( "{}" , email ) ;
419
+ println ! ( "{email}" ) ;
422
420
}
423
421
}
424
422
Cli :: DumpWebsite => {
@@ -456,7 +454,7 @@ fn run() -> Result<(), Error> {
456
454
. collect :: < Vec < _ > > ( ) ;
457
455
allowed. sort_unstable ( ) ;
458
456
for github_username in & allowed {
459
- println ! ( "{}" , github_username ) ;
457
+ println ! ( "{github_username}" ) ;
460
458
}
461
459
}
462
460
Cli :: DumpIndividualAccess { group_by } => {
@@ -526,9 +524,9 @@ fn run() -> Result<(), Error> {
526
524
Cli :: Sync ( opts) => {
527
525
if let Err ( err) = perform_sync ( opts, data) {
528
526
// Display shows just the first element of the chain.
529
- error ! ( "failed: {}" , err ) ;
527
+ error ! ( "failed: {err}" ) ;
530
528
for cause in err. chain ( ) . skip ( 1 ) {
531
- error ! ( "caused by: {}" , cause ) ;
529
+ error ! ( "caused by: {cause}" ) ;
532
530
}
533
531
std:: process:: exit ( 1 ) ;
534
532
}
0 commit comments