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.
This commit is contained in:
bunnie 2024-01-04 19:13:20 +08:00
parent 5f25e2b992
commit 0d80912f0a

View file

@ -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 {