File tree 2 files changed +5
-9
lines changed
fontspector-cli/src/reporters
2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ pub struct Check<'a> {
12
12
pub id : & ' a str ,
13
13
pub title : & ' a str ,
14
14
pub rationale : & ' a str ,
15
- pub proposal : Option < & ' a str > ,
15
+ pub proposal : & ' a str ,
16
16
pub check_one : Option < & ' a CheckOneSignature > ,
17
17
pub check_all : Option < & ' a CheckAllSignature > ,
18
18
pub hotfix : Option < & ' a dyn Fn ( & Testable ) -> FixFnResult > ,
Original file line number Diff line number Diff line change @@ -31,14 +31,10 @@ impl Reporter for TerminalReporter {
31
31
println ! ( ">> {:}" , result. check_id) ;
32
32
if args. verbose > 1 {
33
33
println ! ( " {:}" , result. check_name) ;
34
- }
35
- if let Some ( rationale) = & result. check_rationale {
36
- if args. verbose > 1 {
37
- termimad:: print_inline ( & format ! (
38
- "Rationale:\n \n ```\n {}\n ```\n " ,
39
- rationale
40
- ) ) ;
41
- }
34
+ termimad:: print_inline ( & format ! (
35
+ "Rationale:\n \n ```\n {}\n ```\n " ,
36
+ result. check_rationale
37
+ ) ) ;
42
38
}
43
39
termimad:: print_inline ( & format ! ( "{:}\n " , result. status) ) ;
44
40
if result. status . code != StatusCode :: Fail {
You can’t perform that action at this time.
0 commit comments