We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a8cc1d commit afa72d5Copy full SHA for afa72d5
src/tools/rust-analyzer/crates/ide/src/rename.rs
@@ -516,7 +516,7 @@ mod tests {
516
match result {
517
Ok(RangeInfo { range, info: () }) => {
518
let source = analysis.file_text(position.file_id).unwrap();
519
- expect.assert_eq(&format!("{range:?}: {}", source[range]))
+ expect.assert_eq(&format!("{range:?}: {}", &source[range]))
520
}
521
Err(RenameError(err)) => expect.assert_eq(&err),
522
};
0 commit comments