Skip to content

Commit

Permalink
Fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Icelk committed Feb 4, 2024
1 parent 6f1d810 commit 68681c1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/host.rs
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,10 @@ impl Host {
});

let Some((cert_path, pk_path)) = &cert_path else {
return Err("You cannot use `AutomaticCertificate` on an HTTP-only host!".to_owned());
return Err(
"You cannot use `AutomaticCertificate` on an HTTP-only host!"
.to_owned(),
);
};
let has_cert = { host.certificate.read().unwrap().is_some() };
let (tx, rx) = tokio::sync::oneshot::channel();
Expand Down
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ pub async fn run(
) -> std::sync::Arc<kvarn::shutdown::Manager> {
use self::config::CliOptions;

let env_log = env_logger::Env::new().filter_or("KVARN_LOG", "rustls=off,h3::proto::frame=error,info");
let env_log =
env_logger::Env::new().filter_or("KVARN_LOG", "rustls=off,h3::proto::frame=error,info");
env_logger::Builder::from_env(env_log).init();

let matches = command().get_matches();
Expand Down

0 comments on commit 68681c1

Please sign in to comment.