mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
remove useless conversions
This commit is contained in:
parent
cc80c5bd07
commit
efd2c20e96
17 changed files with 26 additions and 38 deletions
|
@ -364,11 +364,8 @@ mod tests {
|
|||
}
|
||||
Err(err) => {
|
||||
if ra_fixture_after.starts_with("error:") {
|
||||
let error_message = ra_fixture_after
|
||||
.chars()
|
||||
.into_iter()
|
||||
.skip("error:".len())
|
||||
.collect::<String>();
|
||||
let error_message =
|
||||
ra_fixture_after.chars().skip("error:".len()).collect::<String>();
|
||||
assert_eq!(error_message.trim(), err.to_string());
|
||||
} else {
|
||||
panic!("Rename to '{new_name}' failed unexpectedly: {err}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue