Skip to content

Commit

Permalink
Run clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
dormant-user committed Feb 10, 2024
1 parent d2f648b commit bf28049
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/routes/authenticator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Arc<squire::settings::Config>>) -> AuthToken {
Expand Down

0 comments on commit bf28049

Please sign in to comment.