]> git.lizzy.rs Git - rust.git/blobdiff - crates/ide-diagnostics/src/handlers/unlinked_file.rs
Run cargo fmt
[rust.git] / crates / ide-diagnostics / src / handlers / unlinked_file.rs
index 80bd055c78be8a4247187b67672f659a8fb8444d..c626932f196ba7dbd60101fa3c70a55d4b68b819 100644 (file)
 //
 // 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();