mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-07-19 05:16:19 +00:00
Use matches
macro
This commit is contained in:
@@ -48,10 +48,7 @@ fn main() {
|
||||
let level = LF::from_str(&CONFIG.log_level()).expect("Valid log level");
|
||||
init_logging(level).ok();
|
||||
|
||||
let extra_debug = match level {
|
||||
LF::Trace | LF::Debug => true,
|
||||
_ => false,
|
||||
};
|
||||
let extra_debug = matches!(level, LF::Trace | LF::Debug);
|
||||
|
||||
check_data_folder();
|
||||
check_rsa_keys();
|
||||
@@ -64,10 +61,10 @@ fn main() {
|
||||
|
||||
const HELP: &str = "\
|
||||
A Bitwarden API server written in Rust
|
||||
|
||||
|
||||
USAGE:
|
||||
bitwarden_rs
|
||||
|
||||
|
||||
FLAGS:
|
||||
-h, --help Prints help information
|
||||
-v, --version Prints the app version
|
||||
|
Reference in New Issue
Block a user