about summary refs log tree commit diff
path: root/src/librustdoc/html/highlight/tests.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/highlight/tests.rs
parentcd805f09ffbfa3896c8f50a619de9b67e1d9f3c3 (diff)
downloadrust-73fc7af716d614eb88cff01017ac56e700d03aaa.tar.gz
rust-73fc7af716d614eb88cff01017ac56e700d03aaa.zip
rustdoc: pass around decoration info by ref
Diffstat (limited to 'src/librustdoc/html/highlight/tests.rs')
-rw-r--r--src/librustdoc/html/highlight/tests.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/html/highlight/tests.rs b/src/librustdoc/html/highlight/tests.rs
index fd5275189d6..fccbb98f80f 100644
--- a/src/librustdoc/html/highlight/tests.rs
+++ b/src/librustdoc/html/highlight/tests.rs
@@ -78,7 +78,7 @@ let a = 4;";
         decorations.insert("example2", vec![(22, 32)]);
 
         let mut html = Buffer::new();
-        write_code(&mut html, src, None, Some(DecorationInfo(decorations)));
+        write_code(&mut html, src, None, Some(&DecorationInfo(decorations)));
         expect_file!["fixtures/decorations.html"].assert_eq(&html.into_inner());
     });
 }