diff options
| author | ozkanonur <work@onurozkan.dev> | 2023-02-23 21:35:41 +0300 |
|---|---|---|
| committer | ozkanonur <work@onurozkan.dev> | 2023-02-23 21:35:41 +0300 |
| commit | 49516b3f5705c201a915c1b0c690d0f112da6c6a (patch) | |
| tree | a6f90c2e9cabff7a826f2f3e3171839292c246b6 /src/bootstrap | |
| parent | ea218392a4ce119c4dfcd8fb94a7fee77f76f2c5 (diff) | |
| download | rust-49516b3f5705c201a915c1b0c690d0f112da6c6a.tar.gz rust-49516b3f5705c201a915c1b0c690d0f112da6c6a.zip | |
support `x fmt` for sub and outside of rust directories
Signed-off-by: ozkanonur <work@onurozkan.dev>
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/format.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bootstrap/format.rs b/src/bootstrap/format.rs index 615794958d0..ae72a42973c 100644 --- a/src/bootstrap/format.rs +++ b/src/bootstrap/format.rs @@ -218,7 +218,7 @@ pub fn format(build: &Builder<'_>, check: bool, paths: &[PathBuf]) { WalkBuilder::new(first) } } else { - WalkBuilder::new(first) + WalkBuilder::new(src.join(first)) }; for path in &paths[1..] { @@ -229,7 +229,7 @@ pub fn format(build: &Builder<'_>, check: bool, paths: &[PathBuf]) { walker.add(path); } } else { - walker.add(path); + walker.add(src.join(path)); } } |
