From fa542bb24f048776da28212949ae77908124ab31 Mon Sep 17 00:00:00 2001 From: jude Date: Tue, 20 Jun 2023 15:33:25 +0100 Subject: [PATCH] Clear up warning from new Rust version --- Cargo.lock | 2 +- postman/src/sender.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 86a1e3e..0c2fff0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2217,7 +2217,7 @@ checksum = "436b050e76ed2903236f032a59761c1eb99e1b0aead2c257922771dab1fc8c78" [[package]] name = "reminder-rs" -version = "1.6.15-2" +version = "1.6.16" dependencies = [ "base64 0.21.2", "chrono", diff --git a/postman/src/sender.rs b/postman/src/sender.rs index 6201bef..eaffab9 100644 --- a/postman/src/sender.rs +++ b/postman/src/sender.rs @@ -151,7 +151,7 @@ impl Embed { embed.description = substitute(&embed.description); embed.footer = substitute(&embed.footer); - embed.fields.iter_mut().for_each(|mut field| { + embed.fields.iter_mut().for_each(|field| { field.title = substitute(&field.title); field.value = substitute(&field.value); });