File tree Expand file tree Collapse file tree 1 file changed +0
-32
lines changed Expand file tree Collapse file tree 1 file changed +0
-32
lines changed Original file line number Diff line number Diff line change @@ -421,38 +421,6 @@ pub(crate) trait Parseable: Sized {
421
421
fn parse ( s : & str ) -> anyhow:: Result < Self > ;
422
422
}
423
423
424
- pub ( crate ) struct ParseWrapper < T > ( pub ( crate ) T ) ;
425
-
426
- impl < T : std:: fmt:: Display > std:: fmt:: Display for ParseWrapper < T > {
427
- fn fmt ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> std:: fmt:: Result {
428
- self . 0 . fmt ( f)
429
- }
430
- }
431
-
432
- impl < T > std:: str:: FromStr for ParseWrapper < T >
433
- where
434
- T : std:: str:: FromStr ,
435
- T :: Err : Into < anyhow:: Error > ,
436
- {
437
- type Err = anyhow:: Error ;
438
-
439
- fn from_str ( s : & str ) -> Result < Self , Self :: Err > {
440
- T :: from_str ( s) . map ( ParseWrapper ) . map_err ( |e| e. into ( ) )
441
- }
442
- }
443
-
444
- impl < T > Parseable for ParseWrapper < T >
445
- where
446
- T : Parseable ,
447
- T : std:: str:: FromStr ,
448
- T : std:: fmt:: Display ,
449
- T :: Err : Into < anyhow:: Error > ,
450
- {
451
- fn parse ( s : & str ) -> anyhow:: Result < Self > {
452
- <Self as std:: str:: FromStr >:: from_str ( s)
453
- }
454
- }
455
-
456
424
pub ( crate ) trait Field {
457
425
type Output ;
458
426
You can’t perform that action at this time.
0 commit comments