@@ -233,11 +233,7 @@ impl Builder {
233
233
. iter ( )
234
234
. map ( |item| {
235
235
output_vector. push ( "--bitfield-enum" . into ( ) ) ;
236
- output_vector. push (
237
- item. trim_left_matches ( "^" )
238
- . trim_right_matches ( "$" )
239
- . into ( ) ,
240
- ) ;
236
+ output_vector. push ( item. to_owned ( ) ) ;
241
237
} )
242
238
. count ( ) ;
243
239
@@ -247,11 +243,7 @@ impl Builder {
247
243
. iter ( )
248
244
. map ( |item| {
249
245
output_vector. push ( "--rustified-enum" . into ( ) ) ;
250
- output_vector. push (
251
- item. trim_left_matches ( "^" )
252
- . trim_right_matches ( "$" )
253
- . into ( ) ,
254
- ) ;
246
+ output_vector. push ( item. to_owned ( ) ) ;
255
247
} )
256
248
. count ( ) ;
257
249
@@ -261,11 +253,7 @@ impl Builder {
261
253
. iter ( )
262
254
. map ( |item| {
263
255
output_vector. push ( "--constified-enum-module" . into ( ) ) ;
264
- output_vector. push (
265
- item. trim_left_matches ( "^" )
266
- . trim_right_matches ( "$" )
267
- . into ( ) ,
268
- ) ;
256
+ output_vector. push ( item. to_owned ( ) ) ;
269
257
} )
270
258
. count ( ) ;
271
259
@@ -275,11 +263,7 @@ impl Builder {
275
263
. iter ( )
276
264
. map ( |item| {
277
265
output_vector. push ( "--constified-enum" . into ( ) ) ;
278
- output_vector. push (
279
- item. trim_left_matches ( "^" )
280
- . trim_right_matches ( "$" )
281
- . into ( ) ,
282
- ) ;
266
+ output_vector. push ( item. to_owned ( ) ) ;
283
267
} )
284
268
. count ( ) ;
285
269
@@ -289,11 +273,7 @@ impl Builder {
289
273
. iter ( )
290
274
. map ( |item| {
291
275
output_vector. push ( "--blacklist-type" . into ( ) ) ;
292
- output_vector. push (
293
- item. trim_left_matches ( "^" )
294
- . trim_right_matches ( "$" )
295
- . into ( ) ,
296
- ) ;
276
+ output_vector. push ( item. to_owned ( ) ) ;
297
277
} )
298
278
. count ( ) ;
299
279
@@ -303,11 +283,7 @@ impl Builder {
303
283
. iter ( )
304
284
. map ( |item| {
305
285
output_vector. push ( "--blacklist-function" . into ( ) ) ;
306
- output_vector. push (
307
- item. trim_left_matches ( "^" )
308
- . trim_right_matches ( "$" )
309
- . into ( ) ,
310
- ) ;
286
+ output_vector. push ( item. to_owned ( ) ) ;
311
287
} )
312
288
. count ( ) ;
313
289
@@ -317,11 +293,7 @@ impl Builder {
317
293
. iter ( )
318
294
. map ( |item| {
319
295
output_vector. push ( "--blacklist-item" . into ( ) ) ;
320
- output_vector. push (
321
- item. trim_left_matches ( "^" )
322
- . trim_right_matches ( "$" )
323
- . into ( ) ,
324
- ) ;
296
+ output_vector. push ( item. to_owned ( ) ) ;
325
297
} )
326
298
. count ( ) ;
327
299
@@ -472,11 +444,7 @@ impl Builder {
472
444
. iter ( )
473
445
. map ( |item| {
474
446
output_vector. push ( "--opaque-type" . into ( ) ) ;
475
- output_vector. push (
476
- item. trim_left_matches ( "^" )
477
- . trim_right_matches ( "$" )
478
- . into ( ) ,
479
- ) ;
447
+ output_vector. push ( item. to_owned ( ) ) ;
480
448
} )
481
449
. count ( ) ;
482
450
@@ -485,11 +453,7 @@ impl Builder {
485
453
. iter ( )
486
454
. map ( |item| {
487
455
output_vector. push ( "--raw-line" . into ( ) ) ;
488
- output_vector. push (
489
- item. trim_left_matches ( "^" )
490
- . trim_right_matches ( "$" )
491
- . into ( ) ,
492
- ) ;
456
+ output_vector. push ( item. to_owned ( ) ) ;
493
457
} )
494
458
. count ( ) ;
495
459
@@ -507,11 +471,7 @@ impl Builder {
507
471
. iter ( )
508
472
. map ( |item| {
509
473
output_vector. push ( "--whitelist-function" . into ( ) ) ;
510
- output_vector. push (
511
- item. trim_left_matches ( "^" )
512
- . trim_right_matches ( "$" )
513
- . into ( ) ,
514
- ) ;
474
+ output_vector. push ( item. to_owned ( ) ) ;
515
475
} )
516
476
. count ( ) ;
517
477
@@ -521,11 +481,7 @@ impl Builder {
521
481
. iter ( )
522
482
. map ( |item| {
523
483
output_vector. push ( "--whitelist-type" . into ( ) ) ;
524
- output_vector. push (
525
- item. trim_left_matches ( "^" )
526
- . trim_right_matches ( "$" )
527
- . into ( ) ,
528
- ) ;
484
+ output_vector. push ( item. to_owned ( ) ) ;
529
485
} )
530
486
. count ( ) ;
531
487
@@ -535,11 +491,7 @@ impl Builder {
535
491
. iter ( )
536
492
. map ( |item| {
537
493
output_vector. push ( "--whitelist-var" . into ( ) ) ;
538
- output_vector. push (
539
- item. trim_left_matches ( "^" )
540
- . trim_right_matches ( "$" )
541
- . into ( ) ,
542
- ) ;
494
+ output_vector. push ( item. to_owned ( ) ) ;
543
495
} )
544
496
. count ( ) ;
545
497
@@ -576,11 +528,7 @@ impl Builder {
576
528
. iter ( )
577
529
. map ( |item| {
578
530
output_vector. push ( "--no-partialeq" . into ( ) ) ;
579
- output_vector. push (
580
- item. trim_left_matches ( "^" )
581
- . trim_right_matches ( "$" )
582
- . into ( ) ,
583
- ) ;
531
+ output_vector. push ( item. to_owned ( ) ) ;
584
532
} )
585
533
. count ( ) ;
586
534
@@ -590,11 +538,7 @@ impl Builder {
590
538
. iter ( )
591
539
. map ( |item| {
592
540
output_vector. push ( "--no-copy" . into ( ) ) ;
593
- output_vector. push (
594
- item. trim_left_matches ( "^" )
595
- . trim_right_matches ( "$" )
596
- . into ( ) ,
597
- ) ;
541
+ output_vector. push ( item. to_owned ( ) ) ;
598
542
} )
599
543
. count ( ) ;
600
544
@@ -604,11 +548,7 @@ impl Builder {
604
548
. iter ( )
605
549
. map ( |item| {
606
550
output_vector. push ( "--no-hash" . into ( ) ) ;
607
- output_vector. push (
608
- item. trim_left_matches ( "^" )
609
- . trim_right_matches ( "$" )
610
- . into ( ) ,
611
- ) ;
551
+ output_vector. push ( item. to_owned ( ) ) ;
612
552
} )
613
553
. count ( ) ;
614
554
0 commit comments