Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions tools/format-rust.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,17 @@

def rust_files():
result = subprocess.run(
["git", "ls-files", "*.rs"],
["git", "ls-files", "-z", "*.rs"],
cwd=ROOT,
check=True,
capture_output=True,
text=True,
)

for name in result.stdout.splitlines():
for entry in result.stdout.split(b"\x00"):
if not entry:
continue;

name = entry.decode("utf-8")
path = ROOT / name

if any(part in SKIP_DIRS for part in path.parts):
Expand Down
Loading