Skip to content

Commit

Permalink
BE: fix currently unused enum variant warning
Browse files Browse the repository at this point in the history
Summary:
We recently (D59634903) switched to reporting the module:function range for various diagnostics.

This means the `UseRange::WithArgs` constructor is currently unused.

We will need it in future, so just silence the warning for now.

Reviewed By: jcpetruzza

Differential Revision: D59684583

fbshipit-source-id: 8efad049da3902cc9b4d20043c0fca61267dba5e
  • Loading branch information
alanz authored and facebook-github-bot committed Jul 12, 2024
1 parent eb10270 commit e055181
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/ide/src/codemod_helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,7 @@ pub type MakeDiag<'a, T> = &'a dyn Fn(MakeDiagCtx<T>) -> Option<Diagnostic>;

#[derive(Eq, PartialEq, Copy, Clone, Debug)]
pub enum UseRange {
#[allow(dead_code)]
WithArgs,
NameOnly,
}
Expand Down

0 comments on commit e055181

Please sign in to comment.