From 0d80912f0a7afd3a8011ce7a751fe287f4b0ca2d Mon Sep 17 00:00:00 2001 From: bunnie Date: Thu, 4 Jan 2024 19:13:20 +0800 Subject: [PATCH] fix warning in 1.75.0; breaking change with earlier rust versions This is unfortunate, and calling this out in a single commit because this is a dubious decision to achieve warning-free code for such a minor thing. --- services/modals/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/modals/src/lib.rs b/services/modals/src/lib.rs index b41e59e0a..2c7d972a7 100644 --- a/services/modals/src/lib.rs +++ b/services/modals/src/lib.rs @@ -94,7 +94,8 @@ impl<'a> AlertModalBuilder<'a> { final_placeholders = Some(pl) } 0 => (), - _ => panic!("somehow len of placeholders was neither zero or >= 1...?"), + // Note: if you are getting an error on compilation, this line below is required for Rust < 1.75.0 + // _ => panic!("somehow len of placeholders was neither zero or >= 1...?"), } let mut spec = ManagedPromptWithTextResponse {