chore: add linting rules for disallowed methods

This commit is contained in:
Paul Makles
2023-04-22 16:00:30 +01:00
parent ace6431cb8
commit 69ab7e031b

7
clippy.toml Normal file
View File

@@ -0,0 +1,7 @@
disallowed-methods = [
# Shouldn't need to access these directly
"revolt_database::models::bots::model::Bot::remove_field",
# Prefer to use Object::delete()
"revolt_database::models::bots::ops::AbstractBots::update_bot",
]