fix(ci): align lint-safe security paths

This commit is contained in:
elky
2026-09-05 03:19:53 +08:00
parent f5e1420ee6
commit 33d5cd5993
45 changed files with 180 additions and 132 deletions
+2 -2
View File
@@ -433,7 +433,7 @@ fn smtp_read_response<T: std::io::BufRead>(reader: &mut T) -> Result<(u16, Strin
if message
.len()
.checked_add(additional)
.map_or(true, |length| length > SMTP_MAX_RESPONSE_BYTES)
.is_none_or(|length| length > SMTP_MAX_RESPONSE_BYTES)
{
return Err(GatewayError::Internal(
"smtp response exceeds the allowed size".to_string(),
@@ -476,7 +476,7 @@ fn read_smtp_response_line<T: std::io::BufRead>(
if line
.len()
.checked_add(take)
.map_or(true, |length| length > SMTP_MAX_RESPONSE_LINE_BYTES)
.is_none_or(|length| length > SMTP_MAX_RESPONSE_LINE_BYTES)
{
return Err(std::io::Error::new(
std::io::ErrorKind::InvalidData,