about summary refs log tree commit diff
path: root/src/librustdoc/html/sources.rs
diff options
context:
space:
mode:
authorYotam Ofek <yotam.ofek@gmail.com>2025-01-14 11:45:21 +0000
committerYotam Ofek <yotam.ofek@gmail.com>2025-01-22 05:13:38 +0000
commit73fc7af716d614eb88cff01017ac56e700d03aaa (patch)
tree66b0888e1cead86dbb5b0bbd2dfc1fd658925535 /src/librustdoc/html/sources.rs
parentcd805f09ffbfa3896c8f50a619de9b67e1d9f3c3 (diff)
downloadrust-73fc7af716d614eb88cff01017ac56e700d03aaa.tar.gz
rust-73fc7af716d614eb88cff01017ac56e700d03aaa.zip
rustdoc: pass around decoration info by ref
Diffstat (limited to 'src/librustdoc/html/sources.rs')
-rw-r--r--src/librustdoc/html/sources.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustdoc/html/sources.rs b/src/librustdoc/html/sources.rs
index 9827f97d28d..d13822b7b62 100644
--- a/src/librustdoc/html/sources.rs
+++ b/src/librustdoc/html/sources.rs
@@ -249,7 +249,7 @@ impl SourceCollector<'_, '_> {
                     file_span,
                     self.cx,
                     &root_path,
-                    highlight::DecorationInfo::default(),
+                    &highlight::DecorationInfo::default(),
                     SourceContext::Standalone { file_path },
                 )
             },
@@ -328,7 +328,7 @@ pub(crate) fn print_src(
     file_span: rustc_span::Span,
     context: &Context<'_>,
     root_path: &str,
-    decoration_info: highlight::DecorationInfo,
+    decoration_info: &highlight::DecorationInfo,
     source_context: SourceContext<'_>,
 ) {
     let current_href = context