Skip to content

Commit

Permalink
Add with_severity method
Browse files Browse the repository at this point in the history
Reviewed By: alanz

Differential Revision: D55960359

fbshipit-source-id: 725a5aad42f5c5234960002ebb0019da906f77a0
  • Loading branch information
robertoaloi authored and facebook-github-bot committed Apr 10, 2024
1 parent 4e230e7 commit aa0b3ac
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions crates/ide/src/diagnostics/deprecated_function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ impl DeprecationDetails {
self.message = message;
self
}

pub fn with_severity(mut self, severity: Severity) -> Self {
self.severity = severity;
self
}
}

fn deprecated_function(diagnostics: &mut Vec<Diagnostic>, sema: &Semantic, file_id: FileId) {
Expand Down

0 comments on commit aa0b3ac

Please sign in to comment.