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