mirror of
https://github.com/storytold/designcraft.git
synced 2026-10-29 20:56:47 -06:00
Kinsoku::allows: minimal boolean form (clippy 1.96 nonminimal_bool)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
02c5f61173
commit
730d598d48
@@ -60,7 +60,7 @@ pub struct Kinsoku {
|
||||
impl Kinsoku {
|
||||
/// Explicitly supplied character sets take precedence over the fallback table.
|
||||
pub fn allows(&self, a: char, b: char) -> bool {
|
||||
!self.no_end.contains(a) && !self.no_start.contains(b) && !(a == b && self.inseparable.contains(a))
|
||||
!(self.no_end.contains(a) || self.no_start.contains(b) || (a == b && self.inseparable.contains(a)))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user