Skip to content

Commit ad70d24

Browse files
committed
Fix bad merge
1 parent 22a7aef commit ad70d24

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

fontspector-checkapi/src/check.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pub struct Check<'a> {
1212
pub id: &'a str,
1313
pub title: &'a str,
1414
pub rationale: &'a str,
15-
pub proposal: Option<&'a str>,
15+
pub proposal: &'a str,
1616
pub check_one: Option<&'a CheckOneSignature>,
1717
pub check_all: Option<&'a CheckAllSignature>,
1818
pub hotfix: Option<&'a dyn Fn(&Testable) -> FixFnResult>,

fontspector-cli/src/reporters/terminal.rs

+4-8
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,10 @@ impl Reporter for TerminalReporter {
3131
println!(">> {:}", result.check_id);
3232
if args.verbose > 1 {
3333
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+
));
4238
}
4339
termimad::print_inline(&format!("{:}\n", result.status));
4440
if result.status.code != StatusCode::Fail {

0 commit comments

Comments
 (0)