Merge rust-bitcoin/rust-bitcoin#4460: fix duplicate poly1305.rs

f36b8f22d9 fix duplicate poly1305.rs (futreall)

Pull request description:

  hi devs
  fixed error `and and`

ACKs for top commit:
  tcharding:
    ACK f36b8f22d9

Tree-SHA512: 65669ebcd289e2431fe2126ad8256fdc79f2c3afc2bdff4ded968f453bd865feb82488ba9ab2ec1678b1d9b9c6947e82e61848d8f445d0558eb24a51cad76a4d
This commit is contained in:
merge-script 2025-05-07 21:51:10 +00:00
commit 8a563efb02
No known key found for this signature in database
GPG Key ID: C588D63CE41B97C1
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ impl Poly1305 {
// Process previous leftovers if the message is long enough to fill the leftovers buffer. If // Process previous leftovers if the message is long enough to fill the leftovers buffer. If
// the message is too short then it will just be added to the leftovers at the end. Now if there // the message is too short then it will just be added to the leftovers at the end. Now if there
// are no leftovers, but the message can fill the buffer, it will process that buffer and // are no leftovers, but the message can fill the buffer, it will process that buffer and
// and process the rest of the message later on. // process the rest of the message later on.
let fill = let fill =
if self.leftovers_len + message.len() >= 16 { 16 - self.leftovers_len } else { 0 }; if self.leftovers_len + message.len() >= 16 { 16 - self.leftovers_len } else { 0 };