From f23c310f5e7a07eb08da882d77655ce9ebffe48c Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 27 Nov 2020 22:22:40 +0000 Subject: [PATCH] fix switch to portrait Signed-off-by: Ian Jackson --- src/api.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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!(()) }) -- 2.30.2