mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-27 00:31:02 +00:00
Fix clippy and fmt
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
This commit is contained in:
@ -178,10 +178,9 @@ pub enum Error {
|
||||
}
|
||||
|
||||
impl Error {
|
||||
|
||||
#[inline]
|
||||
fn index_name(index_name: &str) -> &str {
|
||||
if let Ok(_) = uuid::Uuid::parse_str(index_name) {
|
||||
if uuid::Uuid::parse_str(index_name).is_ok() {
|
||||
"[uuid]"
|
||||
} else {
|
||||
index_name
|
||||
|
Reference in New Issue
Block a user