mirror of
https://github.com/typst/typst
synced 2025-07-27 14:27:56 +08:00
Compare commits
2 Commits
1399dc2c68
...
c5b723f353
Author | SHA1 | Date | |
---|---|---|---|
|
c5b723f353 | ||
|
e9f1b5825a |
@ -160,6 +160,7 @@ strip = true
|
||||
[workspace.lints.clippy]
|
||||
blocks_in_conditions = "allow"
|
||||
comparison_chain = "allow"
|
||||
iter_over_hash_type = "warn"
|
||||
manual_range_contains = "allow"
|
||||
mutable_key_type = "allow"
|
||||
uninlined_format_args = "warn"
|
||||
|
@ -139,6 +139,7 @@ impl Watcher {
|
||||
fn update(&mut self, iter: impl IntoIterator<Item = PathBuf>) -> StrResult<()> {
|
||||
// Mark all files as not "seen" so that we may unwatch them if they
|
||||
// aren't in the dependency list.
|
||||
#[allow(clippy::iter_over_hash_type, reason = "order does not matter")]
|
||||
for seen in self.watched.values_mut() {
|
||||
*seen = false;
|
||||
}
|
||||
|
@ -173,6 +173,7 @@ impl SystemWorld {
|
||||
|
||||
/// Reset the compilation state in preparation of a new compilation.
|
||||
pub fn reset(&mut self) {
|
||||
#[allow(clippy::iter_over_hash_type, reason = "order does not matter")]
|
||||
for slot in self.slots.get_mut().values_mut() {
|
||||
slot.reset();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user