cargo clippy and fmt
This commit is contained in:
parent
8275b940ac
commit
bfe7fcde99
3 changed files with 71 additions and 50 deletions
|
@ -61,8 +61,9 @@ async fn main() -> std::io::Result<()> {
|
|||
let data: AppData = web::Data::new(RwLock::new(FileStore::load().await?));
|
||||
start_reaper(data.clone());
|
||||
|
||||
let static_dir =
|
||||
PathBuf::from(std::env::var("TRANSBEAM_STATIC_DIR").unwrap_or_else(|_| String::from("static")));
|
||||
let static_dir = PathBuf::from(
|
||||
std::env::var("TRANSBEAM_STATIC_DIR").unwrap_or_else(|_| String::from("static")),
|
||||
);
|
||||
let port = std::env::var("TRANSBEAM_PORT")
|
||||
.ok()
|
||||
.and_then(|p| p.parse::<u16>().ok())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue