From a4be37911c8c321e265f8f6c2f1fb7f2b87d0a8a Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Wed, 15 Mar 2023 23:44:43 -0400 Subject: [PATCH] Cleanup --- Cargo.lock | 1 - src/lib.rs | 1 - web/Cargo.toml | 1 - web/src/static_assets.rs | 2 -- 4 files changed, 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index e395316..dd6b67d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1734,7 +1734,6 @@ name = "web" version = "0.1.0" dependencies = [ "rocket", - "rust-embed", "serde", "tokio", "ufmt", diff --git a/src/lib.rs b/src/lib.rs index ea05297..05020e7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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; diff --git a/web/Cargo.toml b/web/Cargo.toml index a2dab5b..b5b8a97 100644 --- a/web/Cargo.toml +++ b/web/Cargo.toml @@ -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/"} diff --git a/web/src/static_assets.rs b/web/src/static_assets.rs index f07c043..0c8b75d 100644 --- a/web/src/static_assets.rs +++ b/web/src/static_assets.rs @@ -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("/")] 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()