Adding semicolons according to lint
https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned
This commit is contained in:
@@ -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
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user