diff --git a/src/lib.rs b/src/lib.rs index feb47a3..19cfddf 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -16,9 +16,9 @@ pub async fn start() -> io::Result<()> { let build_info = constant::build_info(); squire::startup::init_logger(args.debug, &build_info); - println!("Welcome to RuStream[{}] - {}", build_info.pkg_version, build_info.description); - let arts = vec![squire::ascii_art::DOG, squire::ascii_art::DOLPHIN, squire::ascii_art::HORSE]; - println!("{}", arts.choose(&mut rand::thread_rng()).unwrap().to_string()); + println!("Welcome to RuStream [v{}] - {}", build_info.pkg_version, build_info.description); + let arts = [squire::ascii_art::DOG, squire::ascii_art::DOLPHIN, squire::ascii_art::HORSE]; + println!("{}", arts.choose(&mut rand::thread_rng()).unwrap()); let config = squire::startup::get_config(args); // Create a dedicated clone, since it will be used within closure diff --git a/src/routes/authenticator.rs b/src/routes/authenticator.rs index 402a88b..b66d074 100644 --- a/src/routes/authenticator.rs +++ b/src/routes/authenticator.rs @@ -100,7 +100,7 @@ pub fn verify_login( log::warn!("Authorization header was missing"); err_response = "No credentials received"; } - return Err(err_response.to_string()); + Err(err_response.to_string()) } pub fn verify_token(request: &HttpRequest, config: &Data>) -> AuthToken {