fix some clippy lints

This commit is contained in:
Charles Edward Gagnon 2024-08-13 22:11:43 -04:00
parent 2a1f532b0b
commit f245bf07d0

View file

@ -58,8 +58,8 @@ where
.map(|l| l.as_ref().clone()) .map(|l| l.as_ref().clone())
.collect::<Vec<_>>(); .collect::<Vec<_>>();
const EMPTY_ERR_MSG: &'static str = "Empty supported list. You have to provide at least one locale in the `supported` parameter"; const EMPTY_ERR_MSG: &str = "Empty supported list. You have to provide at least one locale in the `supported` parameter";
assert!(supported.len() > 0, "{}", EMPTY_ERR_MSG); assert!(!supported.is_empty(), "{}", EMPTY_ERR_MSG);
Signal::derive(move || { Signal::derive(move || {
let supported = supported.clone(); let supported = supported.clone();