Skip to content

Commit 0741969

Browse files
committed
Add deny lint for Path::display.
1 parent feefb30 commit 0741969

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clippy.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
disallowed-methods = [
2+
{ path = "std::path::Path::display", reason = "incorrect handling of non-Unicode paths, use path.to_utf8() or debug (`{path:?}`) instead" },
3+
]

0 commit comments

Comments
 (0)