forked from jmug/stoatchat
chore: add linting rules for disallowed methods
This commit is contained in:
7
clippy.toml
Normal file
7
clippy.toml
Normal 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",
|
||||||
|
]
|
||||||
Reference in New Issue
Block a user