Skip to content

Commit 49516b3

Browse files
committed
support x fmt for sub and outside of rust directories
Signed-off-by: ozkanonur <work@onurozkan.dev>
1 parent ea21839 commit 49516b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/bootstrap/format.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ pub fn format(build: &Builder<'_>, check: bool, paths: &[PathBuf]) {
218218
WalkBuilder::new(first)
219219
}
220220
} else {
221-
WalkBuilder::new(first)
221+
WalkBuilder::new(src.join(first))
222222
};
223223

224224
for path in &paths[1..] {
@@ -229,7 +229,7 @@ pub fn format(build: &Builder<'_>, check: bool, paths: &[PathBuf]) {
229229
walker.add(path);
230230
}
231231
} else {
232-
walker.add(path);
232+
walker.add(src.join(path));
233233
}
234234
}
235235

0 commit comments

Comments
 (0)