mirror of
https://github.com/adoyle0/leptos-use.git
synced 2025-01-22 16:49:22 -05:00
chore: clippy
This commit is contained in:
parent
61c112c140
commit
b1367a9f0b
1 changed files with 4 additions and 4 deletions
|
@ -58,13 +58,13 @@ where
|
|||
.map(|l| l.as_ref().clone())
|
||||
.collect::<Vec<_>>();
|
||||
|
||||
const EMPTY_ERR_MSG: &'static str = "Empty supported list. You have to provide at least one locale in the `supported` parameter";
|
||||
assert!(supported.len() > 0, "{}", EMPTY_ERR_MSG);
|
||||
const EMPTY_ERR_MSG: & str = "Empty supported list. You have to provide at least one locale in the `supported` parameter";
|
||||
assert!(!supported.is_empty(), "{}", EMPTY_ERR_MSG);
|
||||
|
||||
Signal::derive(move || {
|
||||
let supported = supported.clone();
|
||||
|
||||
client_locales.with(|clienht_locales| {
|
||||
client_locales.with(|client_locales| {
|
||||
let mut first_supported = None;
|
||||
|
||||
for s in supported {
|
||||
|
@ -72,7 +72,7 @@ where
|
|||
first_supported = Some(s.clone());
|
||||
}
|
||||
|
||||
for client_locale in clienht_locales {
|
||||
for client_locale in client_locales {
|
||||
let client_locale: LanguageIdentifier = client_locale
|
||||
.parse()
|
||||
.expect("Client should provide a list of valid unicode locales");
|
||||
|
|
Loading…
Add table
Reference in a new issue