style: cargo fmt & clippy fixes
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
This commit is contained in:
parent
969b517e18
commit
a602c2624f
29 changed files with 216 additions and 86 deletions
|
@ -1,5 +1,5 @@
|
|||
use rand::seq::IndexedRandom;
|
||||
use std::sync::LazyLock;
|
||||
use rand::{seq::IndexedRandom};
|
||||
|
||||
use axum::body::Bytes;
|
||||
use axum_extra::extract::cookie::{Cookie, SameSite};
|
||||
|
@ -20,7 +20,7 @@ use crate::{
|
|||
error::Error,
|
||||
objects::{HasIsAbove, HasUuid},
|
||||
schema::users,
|
||||
wordlist::{ADJECTIVES, ANIMALS}
|
||||
wordlist::{ADJECTIVES, ANIMALS},
|
||||
};
|
||||
|
||||
pub static EMAIL_REGEX: LazyLock<Regex> = LazyLock::new(|| {
|
||||
|
@ -216,5 +216,5 @@ pub fn generate_device_name() -> String {
|
|||
let adjective = ADJECTIVES.choose(&mut rng).unwrap();
|
||||
let animal = ANIMALS.choose(&mut rng).unwrap();
|
||||
|
||||
return [*adjective, *animal].join(" ")
|
||||
[*adjective, *animal].join(" ")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue