mirror of
https://github.com/astral-sh/ruff
synced 2026-01-20 21:10:48 -05:00
refactor: Rename RuleOrigin::title to RuleOrigin::name
This commit is contained in:
committed by
Charlie Marsh
parent
f4da7635f0
commit
601848d9a8
@@ -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(),
|
||||
})?
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user