refactor: Rename RuleOrigin::title to RuleOrigin::name

This commit is contained in:
Martin Fischer
2023-01-17 06:02:53 +01:00
committed by Charlie Marsh
parent f4da7635f0
commit 601848d9a8
3 changed files with 7 additions and 7 deletions

View File

@@ -296,7 +296,7 @@ pub fn explain(code: &RuleCode, format: SerializationFormat) -> Result<()> {
println!(
"{} ({}): {}",
code.as_ref(),
code.origin().title(),
code.origin().name(),
code.kind().summary()
);
}
@@ -305,7 +305,7 @@ pub fn explain(code: &RuleCode, format: SerializationFormat) -> Result<()> {
"{}",
serde_json::to_string_pretty(&Explanation {
code: code.as_ref(),
origin: code.origin().title(),
origin: code.origin().name(),
summary: &code.kind().summary(),
})?
);