Skip to content

Commit

Permalink
Re-export DiagnosticCode from top to simplify usage
Browse files Browse the repository at this point in the history
Summary: As suggested in D54629514.

Reviewed By: michalmuskala, alanz

Differential Revision: D54634913

fbshipit-source-id: abe7c5d11e6f8acbdcdbb38acaa571b82fb5951b
  • Loading branch information
robertoaloi authored and facebook-github-bot committed Mar 8, 2024
1 parent 3f16ba9 commit 44ca9b6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/ide/src/diagnostics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ mod unused_include;
mod unused_macro;
mod unused_record_field;

pub use elp_ide_db::diagnostic_code::DiagnosticCode;
pub use elp_ide_db::DiagnosticCode;
pub use from_config::Lint;
pub use from_config::LintsFromConfig;
pub use from_config::ReplaceCall;
Expand Down
1 change: 1 addition & 0 deletions crates/ide_db/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ pub use defs::ReferenceClass;
pub use defs::ReferenceType;
pub use defs::SymbolClass;
pub use defs::SymbolDefinition;
pub use diagnostic_code::DiagnosticCode;
pub use elp_base_db;
pub use elp_base_db::impl_intern_key;
pub use elp_eqwalizer::Eqwalizer;
Expand Down
2 changes: 1 addition & 1 deletion crates/ide_db/src/metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use elp_syntax::TextRange;
use elp_syntax::TextSize;
use fxhash::FxHashSet;

use crate::diagnostic_code::DiagnosticCode;
use crate::DiagnosticCode;
use crate::LineIndex;

#[derive(Debug, Clone, PartialEq, Eq)]
Expand Down

0 comments on commit 44ca9b6

Please sign in to comment.