Skip to content

Commit da5dc8f

Browse files
committed
Makefile: only look for regular files in rustfmt* targets
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
1 parent 4996c02 commit da5dc8f

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 $(srctree) -name '*.rs' | xargs $(RUSTFMT)
1828+
find $(srctree) -type f -name '*.rs' | xargs $(RUSTFMT)
18291829

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

18331833

18341834
# Misc

0 commit comments

Comments
 (0)