From a4a47e21c6b27ffd39cfa2dbebc4d51f85b1c0e3 Mon Sep 17 00:00:00 2001 From: mh-northlander Date: Fri, 25 Oct 2024 16:20:38 +0900 Subject: [PATCH] cargo fmt --- python/src/projection.rs | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/python/src/projection.rs b/python/src/projection.rs index 7739c7bc..9140e747 100644 --- a/python/src/projection.rs +++ b/python/src/projection.rs @@ -175,13 +175,16 @@ pub(crate) fn parse_projection_raw( value: &str, dict: &D, ) -> PyResult<(PyProjector, SurfaceProjection)> { - errors::wrap_ctx(SurfaceProjection::try_from(value).map(|v| { - if v == SurfaceProjection::Surface { - (None, SurfaceProjection::Surface) - } else { - (Some(morpheme_projection(v, dict)), v) - } - }), "invalid surface projection") + errors::wrap_ctx( + SurfaceProjection::try_from(value).map(|v| { + if v == SurfaceProjection::Surface { + (None, SurfaceProjection::Surface) + } else { + (Some(morpheme_projection(v, dict)), v) + } + }), + "invalid surface projection", + ) } pub(crate) fn parse_projection_opt(