diff options
author | Igor Gnatenko <ignatenko@redhat.com> | 2017-12-30 22:06:16 +0100 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2017-12-30 16:06:16 -0500 |
commit | a5855a5d733d42ba3913d78dd19083990d41ecf3 (patch) | |
tree | 46aa7b5e7b93f9cb821246e97cd544e0a5f95cc9 /tests | |
parent | 03b0d832edb821d2baed81e04fc82a0699935777 (diff) |
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.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/tests.rs | 2 | ||||
-rw-r--r-- | tests/workdir.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/tests.rs b/tests/tests.rs index 395514b2..0c5b4daf 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -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 diff --git a/tests/workdir.rs b/tests/workdir.rs index 1433f835..ea5408a4 100644 --- a/tests/workdir.rs +++ b/tests/workdir.rs @@ -13,7 +13,7 @@ use std::time::Duration; static TEST_DIR: &'static str = "ripgrep-tests"; static NEXT_ID: AtomicUsize = ATOMIC_USIZE_INIT; -/// WorkDir represents a directory in which tests are run. +/// `WorkDir` represents a directory in which tests are run. /// /// Directories are created from a global atomic counter to avoid duplicates. #[derive(Debug)] |