Skip to content

Commit 5ce9214

Browse files
committed
toml_edit tables: clippy.toml forbidden methods
I used this file and clippy -- -A clippy::all -D clippy::disallowed_methods to find the places I needed to fix.
1 parent 51e8f0d commit 5ce9214

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

clippy.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
disallowed-methods = [
2+
{ path = "toml_edit::Item::as_table", reason = "Use .as_table_like instead!" },
3+
{ path = "toml_edit::Item::is_table", reason = "Use .is_table_like instead!" },
4+
]

0 commit comments

Comments
 (0)