diff options
| author | 2023-05-02 23:40:49 +0800 | |
|---|---|---|
| committer | 2023-05-02 23:40:49 +0800 | |
| commit | 34d6029d20986d7508fbbaf7b370294978400620 (patch) | |
| tree | 28f65ef60db69128490b165b038058d6e4d6e88d /clippy.toml | |
| parent | e8326e064c5cf0d422b0e23925d4705bda6d55d8 (diff) | |
| download | HydroRoll-34d6029d20986d7508fbbaf7b370294978400620.tar.gz HydroRoll-34d6029d20986d7508fbbaf7b370294978400620.zip | |
Diffstat (limited to 'clippy.toml')
| -rw-r--r-- | clippy.toml | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/clippy.toml b/clippy.toml deleted file mode 100644 index d516089..0000000 --- a/clippy.toml +++ /dev/null @@ -1,14 +0,0 @@ -disallowed-types = [ - # Use turbo_tasks_hash::{DeterministicHash, Xxh3Hash64Hasher} instead. - "std::collections::hash_map::DefaultHasher", -] -disallowed-methods = [ - # We forbid the use of the Hasher::hash trait item to prevent misuse of - # hashing Vcs. Vcs must themselves be hashable (to be useable in maps and - # sets), but the hash **is not stable** and must not be observed. - # Use Xxh3Hash64Hasher::write with value's bytes directly. - "std::hash::Hasher::hash", - # We forbid the use of VecDeque::new as it allocates, which is kind of unexpected - # Instead use VecDeque::with_capacity to make it explicit or opt-out of that. - "std::collections::VecDeque::new", -] |
