Skip to content

Commit 5db0505

Browse files
committed
feat: clippy warn as error
1 parent a01561e commit 5db0505

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

scripts/clippy.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,14 @@ def main(args) -> int:
9696
if features_arg:
9797
cmd_parts.extend(["--features", f'"{features_arg}"'])
9898

99+
cmd_parts.extend(
100+
[
101+
"--",
102+
"-D",
103+
"warnings",
104+
]
105+
)
106+
99107
cmd = " ".join(cmd_parts)
100108
print(f"执行命令: {cmd}")
101109

0 commit comments

Comments
 (0)