Update dependencies

This commit is contained in:
Elias Projahn 2022-05-01 18:38:40 +02:00
parent ff17549b8b
commit 6dbc2f949c
6 changed files with 117 additions and 158 deletions

View file

@ -37,10 +37,7 @@ embed_migrations!();
/// Generate a random string suitable as an item ID.
pub fn generate_id() -> String {
let mut buffer = uuid::Uuid::encode_buffer();
let id = uuid::Uuid::new_v4().to_simple().encode_lower(&mut buffer);
id.to_string()
uuid::Uuid::new_v4().simple().to_string()
}
/// Interface to a Musicus database.