File tree Expand file tree Collapse file tree 2 files changed +3
-35
lines changed Expand file tree Collapse file tree 2 files changed +3
-35
lines changed Original file line number Diff line number Diff line change 90
90
- name : Install Rust
91
91
uses : dtolnay/rust-toolchain@stable
92
92
with :
93
- toolchain : " 1.88 " # STABLE
93
+ toolchain : " 1.89 " # STABLE
94
94
- uses : Swatinem/rust-cache@v2
95
95
- name : Check documentation
96
96
env :
@@ -105,7 +105,7 @@ jobs:
105
105
- name : Install Rust
106
106
uses : dtolnay/rust-toolchain@stable
107
107
with :
108
- toolchain : " 1.88 " # STABLE
108
+ toolchain : " 1.89 " # STABLE
109
109
components : rustfmt
110
110
- uses : Swatinem/rust-cache@v2
111
111
- name : Check formatting
@@ -121,7 +121,7 @@ jobs:
121
121
- name : Install Rust
122
122
uses : dtolnay/rust-toolchain@stable
123
123
with :
124
- toolchain : " 1.88 " # STABLE
124
+ toolchain : " 1.89 " # STABLE
125
125
components : clippy
126
126
- uses : Swatinem/rust-cache@v2
127
127
- name : Install SARIF tools
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