mirror of
https://github.com/adoyle0/leptos-use.git
synced 2025-01-22 16:49:22 -05:00
fix some clippy lints
This commit is contained in:
parent
2a1f532b0b
commit
f245bf07d0
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||||
|
|
Loading…
Add table
Reference in a new issue