mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Clippy lint: single-character string constant
This commit is contained in:
parent
4dbf0379cc
commit
5db663d61f
4 changed files with 5 additions and 5 deletions
|
@ -50,7 +50,7 @@ pub fn collect_tests(s: &str) -> Vec<(usize, Test)> {
|
|||
block.map(|(_, line)| line).chain(::std::iter::once("")),
|
||||
"\n",
|
||||
);
|
||||
assert!(!text.trim().is_empty() && text.ends_with("\n"));
|
||||
assert!(!text.trim().is_empty() && text.ends_with('\n'));
|
||||
res.push((start_line, Test { name, text }))
|
||||
}
|
||||
res
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue