mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22:54:58 +00:00
Run cargo fmt
This commit is contained in:
parent
8318035726
commit
7e285e1ef5
35 changed files with 190 additions and 45 deletions
|
@ -18,7 +18,11 @@ use crate::{fix, Assist, Diagnostic, DiagnosticsContext, Severity};
|
|||
//
|
||||
// This diagnostic is shown for files that are not included in any crate, or files that are part of
|
||||
// crates rust-analyzer failed to discover. The file will not have IDE features available.
|
||||
pub(crate) fn unlinked_file(ctx: &DiagnosticsContext<'_>, acc: &mut Vec<Diagnostic>, file_id: FileId) {
|
||||
pub(crate) fn unlinked_file(
|
||||
ctx: &DiagnosticsContext<'_>,
|
||||
acc: &mut Vec<Diagnostic>,
|
||||
file_id: FileId,
|
||||
) {
|
||||
// Limit diagnostic to the first few characters in the file. This matches how VS Code
|
||||
// renders it with the full span, but on other editors, and is less invasive.
|
||||
let range = ctx.sema.db.parse(file_id).syntax_node().text_range();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue