From b8029db9a99e20fcec4624f713649b226290bcd1 Mon Sep 17 00:00:00 2001 From: Sebastian Kuzminsky Date: Sun, 12 Jan 2025 23:44:36 -0700 Subject: [PATCH] help serde disambiguate between numeric quantities and "freeform string" I don't love this, but i couldn't figure out how to tell TOML's Deserialize to accept an enum of a usize or a string for `quantity`. --- modular-recipes/recipes/peristaltic-pump/peristaltic_pump.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modular-recipes/recipes/peristaltic-pump/peristaltic_pump.toml b/modular-recipes/recipes/peristaltic-pump/peristaltic_pump.toml index 488872d..365334b 100644 --- a/modular-recipes/recipes/peristaltic-pump/peristaltic_pump.toml +++ b/modular-recipes/recipes/peristaltic-pump/peristaltic_pump.toml @@ -6,7 +6,7 @@ tube_support = {quantity=1} [inputs.silicone_tubing] type = "silicone tubing, 6mm OD, 4mm ID" -quantity = "1 meter" +amount = "1 meter" comment = "PVC tube isn't flexible enough. Adjust quantity to suit your application." [inputs.m4_25_bhcs]