]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/rust-analyzer/crates/hir/src/attrs.rs
:arrow_up: rust-analyzer
[rust.git] / src / tools / rust-analyzer / crates / hir / src / attrs.rs
index 0bd37934001094d901dd75cc11eedd48ac69dd32..54425d69b6b7f789d62f723b54c27703d61e7782 100644 (file)
@@ -148,7 +148,7 @@ fn resolve_doc_path(
 
     let modpath = {
         // FIXME: this is not how we should get a mod path here
-        let ast_path = ast::SourceFile::parse(&format!("type T = {};", link))
+        let ast_path = ast::SourceFile::parse(&format!("type T = {link};"))
             .syntax_node()
             .descendants()
             .find_map(ast::Path::cast)?;