From df50bb9f476317ec49c7b34687edd3c20c52ebac Mon Sep 17 00:00:00 2001 From: unspeaker Date: Tue, 14 Jan 2025 13:06:40 +0100 Subject: [PATCH] fix missing content --- output/src/direction.rs | 24 ++++++++++++++++++------ output/src/either.rs | 6 +++--- tek/src/arranger-view.edn | 2 +- 3 files changed, 22 insertions(+), 10 deletions(-) diff --git a/output/src/direction.rs b/output/src/direction.rs index 044a7d24..710a3f8b 100644 --- a/output/src/direction.rs +++ b/output/src/direction.rs @@ -95,12 +95,24 @@ impl<'a, E: Output + 'a, T: EdnViewData<'a, E>> TryFromEdn<'a, T> for Bsp, tail: &'a [EdnItem<&str>]) -> Option { use EdnItem::*; Some(match (head, tail) { - (Key("bsp/n"), [a, b]) => Self::n(s.get_content(a).expect("no a"), s.get(b).expect("no b")), - (Key("bsp/s"), [a, b]) => Self::s(s.get_content(a).expect("no a"), s.get(b).expect("no b")), - (Key("bsp/e"), [a, b]) => Self::e(s.get_content(a).expect("no a"), s.get(b).expect("no b")), - (Key("bsp/w"), [a, b]) => Self::w(s.get_content(a).expect("no a"), s.get(b).expect("no b")), - (Key("bsp/a"), [a, b]) => Self::a(s.get_content(a).expect("no a"), s.get(b).expect("no b")), - (Key("bsp/b"), [a, b]) => Self::b(s.get_content(a).expect("no a"), s.get(b).expect("no b")), + (Key("bsp/n"), [a, b]) => Self::n( + s.get_content(a).expect("no a"), + s.get_content(b).expect("no b")), + (Key("bsp/s"), [a, b]) => Self::s( + s.get_content(a).expect("no a"), + s.get_content(b).expect("no b")), + (Key("bsp/e"), [a, b]) => Self::e( + s.get_content(a).expect("no a"), + s.get_content(b).expect("no b")), + (Key("bsp/w"), [a, b]) => Self::w( + s.get_content(a).expect("no a"), + s.get_content(b).expect("no b")), + (Key("bsp/a"), [a, b]) => Self::a( + s.get_content(a).expect("no a"), + s.get_content(b).expect("no b")), + (Key("bsp/b"), [a, b]) => Self::b( + s.get_content(a).expect("no a"), + s.get_content(b).expect("no b")), _ => return None }) } diff --git a/output/src/either.rs b/output/src/either.rs index a58f7c33..99ed273e 100644 --- a/output/src/either.rs +++ b/output/src/either.rs @@ -11,9 +11,9 @@ impl<'a, E: Output + 'a, T: EdnViewData<'a, E>> TryFromEdn<'a, T> for Either