style(rust): document declaration ordering

This commit is contained in:
2026-09-19 10:29:05 -04:00
parent efb2fd3234
commit 5190d1ed01
3 changed files with 29 additions and 15 deletions

View File

@@ -6,6 +6,12 @@ use crate::rules::empty_inherit::EmptyInherit;
pub mod deprecated_to_path;
pub mod empty_inherit;
#[derive(Debug)]
pub struct Diagnostic {
pub file_id: FileId,
pub finding: Finding,
}
#[derive(Debug)]
pub struct Finding {
pub rule_id: &'static str,
@@ -13,12 +19,6 @@ pub struct Finding {
pub message: &'static str,
}
#[derive(Debug)]
pub struct Diagnostic {
pub file_id: FileId,
pub finding: Finding,
}
impl std::fmt::Display for Diagnostic {
fn fmt(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(