Keep references in format! when the target is unsized

This commit is contained in:
Lukas Wirth 2024-07-20 08:39:04 +02:00 committed by GitHub
parent 2a8cc1db3a
commit afa72d53e3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -516,7 +516,7 @@ mod tests {
match result {
Ok(RangeInfo { range, info: () }) => {
let source = analysis.file_text(position.file_id).unwrap();
expect.assert_eq(&format!("{range:?}: {}", source[range]))
expect.assert_eq(&format!("{range:?}: {}", &source[range]))
}
Err(RenameError(err)) => expect.assert_eq(&err),
};