From f7d63d798760496c3266ddba0e2f0da732c941f8 Mon Sep 17 00:00:00 2001 From: Jeremy Wall Date: Sat, 19 Feb 2022 10:33:44 -0500 Subject: [PATCH] TODO cleanup --- kitchen/src/web.rs | 1 - recipes/src/unit.rs | 2 -- web/src/service.rs | 1 - 3 files changed, 4 deletions(-) diff --git a/kitchen/src/web.rs b/kitchen/src/web.rs index 61f8879..9e89b70 100644 --- a/kitchen/src/web.rs +++ b/kitchen/src/web.rs @@ -37,7 +37,6 @@ pub async fn get_recipes(recipe_dir_path: PathBuf) -> Result, 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")) diff --git a/recipes/src/unit.rs b/recipes/src/unit.rs index fcd92f1..6f38162 100644 --- a/recipes/src/unit.rs +++ b/recipes/src/unit.rs @@ -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)) diff --git a/web/src/service.rs b/web/src/service.rs index 29da615..c81ef72 100644 --- a/web/src/service.rs +++ b/web/src/service.rs @@ -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)>>, menu_list: Signal>, }