Adding semicolons according to lint

https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned
This commit is contained in:
2021-08-12 15:48:02 +02:00
committed by dietrich
parent fe1556b099
commit 6c6f66cdf8
6 changed files with 19 additions and 18 deletions
+2 -2
View File
@@ -142,7 +142,7 @@ async fn parse_args_to_config(config: ArgMatches<'_>) -> ServerConfig {
warn!("If you change the secret all passwords will be invalid");
warn!("Using an auto generated one for this run.");
} else {
warn!("The provided secret was too short. Using an autogenerated one.")
warn!("The provided secret was too short. Using an autogenerated one.");
}
thread_rng()
@@ -363,7 +363,7 @@ fn generate_env_file(server_config: &ServerConfig) -> Result<(), ServerError> {
for line in &conf_file_content {
file.write_all(line.as_bytes())
.expect("failed to write .env file")
.expect("failed to write .env file");
}
info!("Successfully created the env file!");
+6 -1
View File
@@ -206,7 +206,12 @@ static_loader! {
/// # Errors
/// This produces a [`ServerError`] if:
/// * The server failed to bind to the designated port.
#[allow(clippy::future_not_send, clippy::too_many_lines)]
#[allow(
clippy::future_not_send,
clippy::too_many_lines,
unknown_lints,
clippy::unused_async
)]
pub async fn webservice(
server_config: ServerConfig,
) -> Result<actix_web::dev::Server, std::io::Error> {