Skip to content

Commit

Permalink
chore: rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Ray Redondo committed Jan 26, 2024
1 parent 0e18944 commit db102cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
2 changes: 0 additions & 2 deletions lccc/src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ impl<'a> DriverSession<'a> {
}
}
}


}

pub struct CompileSession<'a> {
Expand Down
12 changes: 5 additions & 7 deletions xlang/src/diag.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use xlang_abi::{string::String, vec::Vec};

#[repr(u32)]
pub enum DiagnosticSeverity{
pub enum DiagnosticSeverity {
Bug,
Fatal,
Error,
Expand All @@ -11,14 +11,13 @@ pub enum DiagnosticSeverity{
}

#[repr(C)]
pub struct DiagnosticText{
pub struct DiagnosticText {
pub severity: DiagnosticSeverity,
pub text: String,
}


#[repr(C)]
pub struct DiagnosticElement{
pub struct DiagnosticElement {
pub pretty_source_pos: String,
pub display_source_begin_off: u64,
pub display_source_end_off: u64,
Expand All @@ -28,8 +27,7 @@ pub struct DiagnosticElement{
}

#[repr(C)]
pub struct Diagnostic{
pub struct Diagnostic {
pub pre_text: Vec<DiagnosticText>,
pub elements: Vec<DiagnosticElement>,

}
}

0 comments on commit db102cb

Please sign in to comment.