Compare commits

...

4 Commits

Author SHA1 Message Date
zefr0x
3ede981e92
Merge cac273e50d45d2bdb1a6b9253f6af608b9afa5ac into e9f1b5825a9d37ca0c173a7b2830ba36a27ca9e0 2025-07-24 16:50:49 +03:00
Laurenz
e9f1b5825a
Lint for iterations over hash types (#6652) 2025-07-24 11:34:08 +00:00
zefr0x
cac273e50d Update test refrence 2025-07-18 03:21:07 +03:00
zefr0x
1222ab5818 Specify the standard smart quotes for Arabic
The alternative is the default for RTL languages.
2025-07-18 02:56:09 +03:00
5 changed files with 4 additions and 0 deletions

View File

@ -159,6 +159,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"

View File

@ -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;
}

View File

@ -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();
}

View File

@ -264,6 +264,7 @@ impl<'s> SmartQuotes<'s> {
"he" => ("", "", "", ""),
"hr" => ("", "", "", ""),
"bg" => ("", "", "", ""),
"ar" if !alternative => ("", "", "«", "»"),
_ if lang.dir() == Dir::RTL => ("", "", "", ""),
_ => default,
};

Binary file not shown.

Before

Width:  |  Height:  |  Size: 959 B

After

Width:  |  Height:  |  Size: 969 B