mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-23 10:37:41 +08:00
Comply with Clippy rule single-match
This commit is contained in:
parent
3c3ae3ff98
commit
9ebc73e6ac
@ -287,14 +287,13 @@ impl Opt {
|
|||||||
config_read_from = Some(config_file_path);
|
config_read_from = Some(config_file_path);
|
||||||
}
|
}
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
match user_specified_config_file_path {
|
if let Some(path) = user_specified_config_file_path {
|
||||||
// If we have an error while reading the file defined by the user.
|
// If we have an error while reading the file defined by the user.
|
||||||
Some(path) => anyhow::bail!(
|
anyhow::bail!(
|
||||||
"unable to open or read the {:?} configuration file: {}.",
|
"unable to open or read the {:?} configuration file: {}.",
|
||||||
path,
|
path,
|
||||||
e,
|
e,
|
||||||
),
|
)
|
||||||
None => (),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user