mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-17 00:17:46 +08:00
fix(ci): satisfy protocol utility clippy checks
This commit is contained in:
@@ -22,7 +22,10 @@ pub(crate) fn is_safe_openai_image_base64_payload(value: &str) -> bool {
|
||||
let first_padding = bytes.iter().position(|byte| *byte == b'=');
|
||||
if let Some(index) = first_padding {
|
||||
let padding = bytes.len() - index;
|
||||
if padding > 2 || bytes[index..].iter().any(|byte| *byte != b'=') || bytes.len() % 4 != 0 {
|
||||
if padding > 2
|
||||
|| bytes[index..].iter().any(|byte| *byte != b'=')
|
||||
|| !bytes.len().is_multiple_of(4)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user