diff options
| author | bors <bors@rust-lang.org> | 2018-09-02 15:27:56 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-09-02 15:27:56 +0000 |
| commit | 23ea1b8188075e89459576c12e50a9c0a2c7e94e (patch) | |
| tree | 7114b71526167675ac6160830b6e44ca69082f1b /src/librustc_incremental | |
| parent | 5a0a9a280a83294cfc8b93ed8873781c85ef72c3 (diff) | |
| parent | e6990767802a115d780394f97683528d0bfe960c (diff) | |
Auto merge of #53599 - matthiaskrgr:split_str__to__split_char, r=frewsxcv
use char pattern for single-character splits: a.split("x") -> a.split('x')
Diffstat (limited to 'src/librustc_incremental')
| -rw-r--r-- | src/librustc_incremental/assert_module_sources.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_incremental/assert_module_sources.rs b/src/librustc_incremental/assert_module_sources.rs index 9b8e2c450d5..139159c1639 100644 --- a/src/librustc_incremental/assert_module_sources.rs +++ b/src/librustc_incremental/assert_module_sources.rs @@ -89,7 +89,7 @@ impl<'a, 'tcx> AssertModuleSource<'a, 'tcx> { (&user_path[..], None) }; - let mut cgu_path_components = user_path.split("-").collect::<Vec<_>>(); + let mut cgu_path_components = user_path.split('-').collect::<Vec<_>>(); // Remove the crate name assert_eq!(cgu_path_components.remove(0), crate_name); |
