From 83f34208a05241f0cf2af23387d4e5a1285e329d Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 17 Nov 2020 19:22:56 +0000 Subject: [PATCH] wip toml Signed-off-by: Ian Jackson --- src/toml.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/toml.rs b/src/toml.rs index 88d1b170..62d86b05 100644 --- a/src/toml.rs +++ b/src/toml.rs @@ -82,6 +82,10 @@ fn visit<'de, V: Visitor<'de>>(v: V, tv: &'de toml::Value) -> V::Value { type TV = toml::Value; match tv { TV::String(s) => v.visit_borrowed_str(s)?, + &TV::Integer(i) => v.visit_i64(i)?, + &TV::Float(f) => v.visit_f64(f)?, + &TV::Boolean(b) => v.visit_bool(b)?, + TV::Datetime(dt) => v.visit_str(&dt.to_string())?, TV::Array(a) => v.visit_seq(SA(a.as_slice().iter()))?, TV::Table(t) => v.visit_map(MA(t.iter().peekable()))?, } -- 2.30.2