Skip to content

Commit afa72d5

Browse files
authored
Keep references in format! when the target is unsized
1 parent 2a8cc1d commit afa72d5

File tree

1 file changed

+1
-1
lines changed
  • src/tools/rust-analyzer/crates/ide/src

1 file changed

+1
-1
lines changed

src/tools/rust-analyzer/crates/ide/src/rename.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ mod tests {
516516
match result {
517517
Ok(RangeInfo { range, info: () }) => {
518518
let source = analysis.file_text(position.file_id).unwrap();
519-
expect.assert_eq(&format!("{range:?}: {}", source[range]))
519+
expect.assert_eq(&format!("{range:?}: {}", &source[range]))
520520
}
521521
Err(RenameError(err)) => expect.assert_eq(&err),
522522
};

0 commit comments

Comments
 (0)