mirror of
https://github.com/codewhale-hq/Codewhale.git
synced 2026-11-11 10:01:30 -10:00
chore(release): satisfy current lint and preserve upstream font license bytes
Collapse the configured-limit guard and use the integer parity helper without changing validation or fixture behavior. Keep the qualified OFL byte hash intact with a file-scoped trailing-space attribute and LF checkout policy. Validation: cargo fmt and candidate diff whitespace check pass; original complete OFL SHA-256 remains 19c20bff3654a225895067510552ef14ce64bbcdfb90f3ae04957548e9d2cf4f. Prior all-targets/all-features Clippy found these two lints; corrected Clippy and the joined Engine stack regression remain pending. No warning suppression for Rust and no publication.
This commit is contained in:
1 parent
1a26d005c2
commit
fd1cc494fe
3 files changed
+13
-7
No files matched your search
@@ -39,3 +39,6 @@ scripts/release/*.sh text eol=lf
|
||||
|
||||
# Everything else auto-detects (default).
|
||||
* text=auto
|
||||
|
||||
# Preserve the qualified upstream font license, including its trailing space.
|
||||
web/public/brand/fonts/OFL.txt text eol=lf whitespace=-blank-at-eol
|
||||
@@ -103,18 +103,17 @@ pub fn validate_configured_models(models: &[ConfiguredModel]) -> anyhow::Result<
|
||||
{
|
||||
return Err(invalid("display_name"));
|
||||
}
|
||||
if let Some(limit) = &model.limit {
|
||||
if [limit.context, limit.input, limit.output]
|
||||
if let Some(limit) = &model.limit
|
||||
&& ([limit.context, limit.input, limit.output]
|
||||
.into_iter()
|
||||
.flatten()
|
||||
.any(|value| value == 0 || value > u64::from(u32::MAX))
|
||||
|| limit.context.is_some_and(|context| {
|
||||
limit.input.is_some_and(|input| input > context)
|
||||
|| limit.output.is_some_and(|output| output > context)
|
||||
})
|
||||
{
|
||||
return Err(invalid("limit"));
|
||||
}
|
||||
}))
|
||||
{
|
||||
return Err(invalid("limit"));
|
||||
}
|
||||
if model
|
||||
.cost
|
||||
|
||||
@@ -157,7 +157,11 @@ fn publication_child() {
|
||||
}
|
||||
fs::write(root.join(format!("ready-{index}")), b"ready").unwrap();
|
||||
await_file(&root.join("start"));
|
||||
let files = if index % 2 == 0 { FIRST } else { SECOND };
|
||||
let files = if index.is_multiple_of(2) {
|
||||
FIRST
|
||||
} else {
|
||||
SECOND
|
||||
};
|
||||
for _ in 0..8 {
|
||||
let published = write_bundle(&root.join("cache"), NAME, files).unwrap();
|
||||
assert_contents(&published, files);
|
||||
|
||||
Reference in new issue
Block a user