Skip to content

Commit

Permalink
Update MessageHeader.fix to Option<Fix>
Browse files Browse the repository at this point in the history
  • Loading branch information
zanieb committed May 7, 2023
1 parent db140f2 commit 310fa94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/ruff_cli/src/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ impl Serialize for SerializeMessage<'_> {
struct MessageHeader {
kind: DiagnosticKind,
range: TextRange,
fix: Fix,
fix: Option<Fix>,
file_id: usize,
noqa_row: TextSize,
}
Expand Down Expand Up @@ -233,7 +233,7 @@ pub fn get(
messages.push(Message {
kind: header.kind,
range: header.range,
fix: Some(header.fix),
fix: header.fix,
file: source_file.clone(),
noqa_offset: header.noqa_row,
});
Expand Down

0 comments on commit 310fa94

Please sign in to comment.