aboutsummaryrefslogtreecommitdiff
path: root/xtask/src/lib.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-01-21 13:38:28 +0000
committerGitHub <[email protected]>2021-01-21 13:38:28 +0000
commit0045d7c6db0d9e1e5f88702249c90c096f1882d8 (patch)
tree308cae3f62ce3608385265ce6d885c2e90cffab6 /xtask/src/lib.rs
parent64a92e2328ed5441fb99344d5f7c410f371414a2 (diff)
parentfeb252138d561075116119d9aa84a21b7244e471 (diff)
Merge #7370
7370: fix mega bug r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'xtask/src/lib.rs')
-rw-r--r--xtask/src/lib.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/xtask/src/lib.rs b/xtask/src/lib.rs
index babec2dbd..16b06b853 100644
--- a/xtask/src/lib.rs
+++ b/xtask/src/lib.rs
@@ -34,7 +34,11 @@ pub fn project_root() -> PathBuf {
34 .to_path_buf() 34 .to_path_buf()
35} 35}
36 36
37pub fn rust_files(path: &Path) -> impl Iterator<Item = PathBuf> { 37pub fn rust_files() -> impl Iterator<Item = PathBuf> {
38 rust_files_in(&project_root().join("crates"))
39}
40
41pub fn rust_files_in(path: &Path) -> impl Iterator<Item = PathBuf> {
38 let iter = WalkDir::new(path); 42 let iter = WalkDir::new(path);
39 return iter 43 return iter
40 .into_iter() 44 .into_iter()