From: Ian Jackson Date: Fri, 27 Nov 2020 22:22:40 +0000 (+0000) Subject: fix switch to portrait X-Git-Tag: otter-0.2.0~331 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=f23c310f5e7a07eb08da882d77655ce9ebffe48c;p=otter.git fix switch to portrait Signed-off-by: Ian Jackson --- diff --git a/src/api.rs b/src/api.rs index 4ffc338f..943edfa7 100644 --- a/src/api.rs +++ b/src/api.rs @@ -47,7 +47,7 @@ impl<'r> FromParam<'r> for AbbrevPresentationLayout { #[throws(Self::Error)] fn from_param(param: &'r RawStr) -> Self { AbbrevPresentationLayout(match param.as_str() { - "p "=> PL::Portrait, + "p" => PL::Portrait, "l" => PL::Landscape, _ => throw!(()) })