admission: simplify the historic-ruling guard (clippy 1.95.0 nonminimal_bool)
The pinned 1.95.0 toolchain rejects the negated conjunction at admission.rs:674 under -D warnings; the rewrite is its own suggestion and De Morgan-equal. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
416e385c97
commit
c9a33f7ed5
1 changed files with 1 additions and 1 deletions
|
|
@ -671,7 +671,7 @@ fn check(docs: &Docs<'_>, staged: &Staged, mind: &Slug, import: Option<&ImportSo
|
|||
return Err(MindRefusal::RepoNotInCampaign { repo: spec.repo.0.clone() });
|
||||
}
|
||||
for ruling in &spec.rulings {
|
||||
if !(historic && root_and_local(&ruling.0).0 != root) && !docs.in_force(K::Ruling, &ruling.0) {
|
||||
if !(docs.in_force(K::Ruling, &ruling.0) || historic && root_and_local(&ruling.0).0 != root) {
|
||||
return Err(MindRefusal::CitesResolvedDocument { kind: K::Ruling, id: ruling.0.clone() });
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue