Skip to content

Commit

Permalink
style: cargo fmt
Browse files Browse the repository at this point in the history
Signed-off-by: simonsan <[email protected]>
  • Loading branch information
simonsan committed Jan 1, 2024
1 parent 94b8b03 commit a7b85dc
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/bin/rustic-scheduler-server.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use std::{collections::HashMap, fs::read_to_string, time::Duration};
use anyhow::Result;
use axum::{
extract::{
Expand All @@ -12,9 +11,10 @@ use axum::{
use chrono::Local;
use log::warn;
use sailfish::TemplateOnce;
use std::{collections::HashMap, fs::read_to_string, time::Duration};
use tokio::{
spawn,
net::TcpListener,
spawn,
sync::{mpsc, oneshot},
time::sleep,
};
Expand Down Expand Up @@ -146,10 +146,8 @@ async fn main() {
.with_state(wtx);

// run it with hyper on localhost:3012
let listener = TcpListener::bind(&config.global.address)
.await
.unwrap();

let listener = TcpListener::bind(&config.global.address).await.unwrap();

println!("Listening on http://{}", config.global.address);

axum::serve(listener, app.into_make_service())
Expand Down

0 comments on commit a7b85dc

Please sign in to comment.