aboutsummaryrefslogtreecommitdiff
path: root/crates/tools/src
diff options
context:
space:
mode:
authorAlan Du <[email protected]>2018-10-16 16:45:10 +0100
committerAlan Du <[email protected]>2018-10-18 00:42:23 +0100
commit5db663d61fb8b006e3b84ef3bcc9cddbe94e5f49 (patch)
treeb4b904c3580f975bc69f1f68ff938fe70da11bfa /crates/tools/src
parent4dbf0379ccd5c7643d48658f0ecc224add5a5c5c (diff)
Clippy lint: single-character string constant
Diffstat (limited to 'crates/tools/src')
-rw-r--r--crates/tools/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/tools/src/lib.rs b/crates/tools/src/lib.rs
index 444745be5..7c5410d3c 100644
--- a/crates/tools/src/lib.rs
+++ b/crates/tools/src/lib.rs
@@ -50,7 +50,7 @@ pub fn collect_tests(s: &str) -> Vec<(usize, Test)> {
50 block.map(|(_, line)| line).chain(::std::iter::once("")), 50 block.map(|(_, line)| line).chain(::std::iter::once("")),
51 "\n", 51 "\n",
52 ); 52 );
53 assert!(!text.trim().is_empty() && text.ends_with("\n")); 53 assert!(!text.trim().is_empty() && text.ends_with('\n'));
54 res.push((start_line, Test { name, text })) 54 res.push((start_line, Test { name, text }))
55 } 55 }
56 res 56 res