Skip to content

Commit 1df65b6

Browse files
authored
Merge pull request #240 from ojeda/rustfmt-Obuild
`rustfmt*` improvements
2 parents c3410c1 + da5dc8f commit 1df65b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1825,10 +1825,10 @@ rustdoc: prepare0
18251825
PHONY += rustfmt rustfmtcheck
18261826

18271827
rustfmt:
1828-
find -name '*.rs' | xargs $(RUSTFMT)
1828+
find $(srctree) -type f -name '*.rs' | xargs $(RUSTFMT)
18291829

18301830
rustfmtcheck:
1831-
find -name '*.rs' | xargs $(RUSTFMT) --check
1831+
find $(srctree) -type f -name '*.rs' | xargs $(RUSTFMT) --check
18321832

18331833

18341834
# Misc

0 commit comments

Comments
 (0)