TODO cleanup

This commit is contained in:
Jeremy Wall 2022-02-19 10:33:44 -05:00
parent 2cc4c18238
commit f7d63d7987
3 changed files with 0 additions and 4 deletions

View File

@ -37,7 +37,6 @@ pub async fn get_recipes(recipe_dir_path: PathBuf) -> Result<Vec<String>, ParseE
pub async fn ui_main(recipe_dir_path: PathBuf) {
let root = warp::path::end().map(|| warp::redirect::found(Uri::from_static("/ui")));
let ui = warp::path("ui").and(static_dir!("webdist/"));
// TODO(jwall): Figure out how to make and_then work to simplify the below.
let api = warp::path("api")
.and(warp::path("v1"))
.and(warp::path("recipes"))

View File

@ -351,8 +351,6 @@ pub enum Measure {
use Measure::{Count, Volume, Weight};
// TODO(jwall): We should have an affinity for certain types of volume measurements
// based on the original measurement type.
impl Measure {
pub fn tsp(qty: Quantity) -> Self {
Volume(Tsp(qty))

View File

@ -23,7 +23,6 @@ use recipes::{parse, Ingredient, IngredientAccumulator, IngredientKey, Recipe};
#[derive(Clone)]
pub struct AppService {
// TODO(jwall): Should each Recipe also be a Signal?
recipes: Signal<Vec<(usize, Signal<Recipe>)>>,
menu_list: Signal<BTreeMap<usize, usize>>,
}