Clippy lint: single-character string constant

This commit is contained in:
Alan Du 2018-10-16 11:45:10 -04:00
parent 4dbf0379cc
commit 5db663d61f
4 changed files with 5 additions and 5 deletions

View file

@ -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