couple of trivial fixes to make clippy a bit more happy (#704)

clippy: fix a few lints

The fixes are:

  * Use single quotes for single-character
  * Use ticks in documentation when necessary.
  * Just bow to clippy's wisdom.
This commit is contained in:
Igor Gnatenko
2017-12-30 22:06:16 +01:00
committed by Andrew Gallant
parent 03b0d832ed
commit a5855a5d73
4 changed files with 10 additions and 9 deletions

View File

@@ -62,7 +62,7 @@ fn paths(unix: &[&str]) -> Vec<String> {
fn paths_from_stdout(stdout: String) -> Vec<String> {
let mut paths: Vec<_> = stdout.lines().map(|s| {
s.split(":").next().unwrap().to_string()
s.split(':').next().unwrap().to_string()
}).collect();
paths.sort();
paths