Description: avoid code syntax too fancy for rustc older than 1.88
Author: Jonas Smedegaard <dr@jones.dk>
Bug: https://github.com/stalwartlabs/smtp-proto/issues/11
Last-Update: 2025-09-14
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/src/request/parser.rs
+++ b/src/request/parser.rs
@@ -122,8 +122,8 @@
                 })
             }
             AUTH => {
-                if parser.stop_char != LF
-                    && let Some(mechanism) = parser.mechanism()?
+                if parser.stop_char != LF {
+                    if let Some(mechanism) = parser.mechanism()?
                 {
                     let initial_response = if parser.stop_char != LF {
                         parser.text()?
@@ -135,7 +135,7 @@
                         mechanism,
                         initial_response,
                     });
-                }
+                }}
                 Err(Error::SyntaxError {
                     syntax: "AUTH mechanism [initial-response]",
                 })
