Cleanup
This commit is contained in:
parent
8b39e6fe69
commit
a4be37911c
1
Cargo.lock
generated
1
Cargo.lock
generated
@ -1734,7 +1734,6 @@ name = "web"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"rocket",
|
||||
"rust-embed",
|
||||
"serde",
|
||||
"tokio",
|
||||
"ufmt",
|
||||
|
@ -2,7 +2,6 @@
|
||||
#![allow(clippy::cast_possible_truncation, clippy::multiple_crate_versions)]
|
||||
#![allow(unused_imports)]
|
||||
|
||||
pub mod dense;
|
||||
pub mod v0;
|
||||
use conversions::lat_lon_to_cellid;
|
||||
pub use s2::s1::angle::Angle;
|
||||
|
@ -10,6 +10,5 @@ rocket = {version="0.5.0-rc.2", features=["json"]}
|
||||
tokio = {version="1"}
|
||||
xpin={path=".."}
|
||||
serde = {version="1", features=["derive"]}
|
||||
rust-embed = { version = "6.6.0", features = ["rocket"] }
|
||||
ufmt = "0.2.0"
|
||||
web-frontend={path="../web-frontend/"}
|
||||
|
@ -1,6 +1,5 @@
|
||||
use rocket::get;
|
||||
use rocket::http::ContentType;
|
||||
use rust_embed::RustEmbed;
|
||||
|
||||
use std::borrow::Cow;
|
||||
use std::ffi::OsStr;
|
||||
@ -9,7 +8,6 @@ use web_frontend::Asset;
|
||||
|
||||
#[get("/<file..>")]
|
||||
pub(crate) fn dist(file: PathBuf) -> Option<(ContentType, Cow<'static, [u8]>)> {
|
||||
eprintln!("file: {file:?}");
|
||||
if let Some(a) = Asset::get(&format!("{}", file.display().to_string())) {
|
||||
let content_type = file
|
||||
.extension()
|
||||
|
Loading…
Reference in New Issue
Block a user