Skip to content

Commit

Permalink
Fix bitrotted module name
Browse files Browse the repository at this point in the history
  • Loading branch information
matklad committed Feb 16, 2021
1 parent b65f784 commit b8934e4
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion crates/rust-analyzer/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ use vfs::AbsPathBuf;

use crate::{
caps::completion_item_edit_resolve, diagnostics::DiagnosticsMapConfig,
line_endings::OffsetEncoding, lsp_ext::supports_utf8,
line_index::OffsetEncoding, lsp_ext::supports_utf8,
};

config_data! {
Expand Down
2 changes: 1 addition & 1 deletion crates/rust-analyzer/src/from_proto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use vfs::AbsPathBuf;
use crate::{
from_json,
global_state::GlobalStateSnapshot,
line_endings::{LineIndex, OffsetEncoding},
line_index::{LineIndex, OffsetEncoding},
lsp_ext, Result,
};

Expand Down
2 changes: 1 addition & 1 deletion crates/rust-analyzer/src/global_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use crate::{
diagnostics::{CheckFixes, DiagnosticCollection},
document::DocumentData,
from_proto,
line_endings::{LineEndings, LineIndex},
line_index::{LineEndings, LineIndex},
main_loop::Task,
op_queue::OpQueue,
reload::SourceRootConfig,
Expand Down
3 changes: 1 addition & 2 deletions crates/rust-analyzer/src/handlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ use crate::{
diff::diff,
from_proto,
global_state::{GlobalState, GlobalStateSnapshot},
line_endings::LineEndings,
line_endings::LineIndex,
line_index::{LineEndings, LineIndex},
lsp_ext::{self, InlayHint, InlayHintsParams},
lsp_utils::all_edits_are_disjoint,
to_proto, LspError, Result,
Expand Down
2 changes: 1 addition & 1 deletion crates/rust-analyzer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ mod from_proto;
mod semantic_tokens;
mod markdown;
mod diagnostics;
mod line_endings;
mod line_index;
mod request_metrics;
mod lsp_utils;
mod thread_pool;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//! Enhances `ide::LineIndex` with additional info required to convert offsets
//! into lsp positions.
//!
//! We maintain invariant that all internal strings use `\n` as line separator.
//! This module does line ending conversion and detection (so that we can
//! convert back to `\r\n` on the way out).
Expand Down
2 changes: 1 addition & 1 deletion crates/rust-analyzer/src/lsp_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use lsp_server::Notification;
use crate::{
from_proto,
global_state::GlobalState,
line_endings::{LineEndings, LineIndex, OffsetEncoding},
line_index::{LineEndings, LineIndex, OffsetEncoding},
};

pub(crate) fn is_canceled(e: &(dyn Error + 'static)) -> bool {
Expand Down
2 changes: 1 addition & 1 deletion crates/rust-analyzer/src/to_proto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use serde_json::to_value;
use crate::{
cargo_target_spec::CargoTargetSpec,
global_state::GlobalStateSnapshot,
line_endings::{LineEndings, LineIndex, OffsetEncoding},
line_index::{LineEndings, LineIndex, OffsetEncoding},
lsp_ext, semantic_tokens, Result,
};

Expand Down

0 comments on commit b8934e4

Please sign in to comment.