format code

This commit is contained in:
mpostma 2021-03-24 11:29:11 +01:00
parent 1f16c8d224
commit 4041d9dc48
No known key found for this signature in database
GPG key ID: CBC8A7C1D7A28C3A
18 changed files with 60 additions and 61 deletions

View file

@ -27,14 +27,20 @@ impl Server {
let data = Data::new(opt).unwrap();
let service = Service(data);
Server { service, _dir: Some(dir) }
Server {
service,
_dir: Some(dir),
}
}
pub async fn new_with_options(opt: Opt) -> Self {
let data = Data::new(opt).unwrap();
let service = Service(data);
Server { service, _dir: None }
Server {
service,
_dir: None,
}
}
/// Returns a view to an index. There is no guarantee that the index exists.