Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
mh-northlander committed Oct 25, 2024
1 parent c943da8 commit a4a47e2
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions python/src/projection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,13 +175,16 @@ pub(crate) fn parse_projection_raw<D: DictionaryAccess>(
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<D: DictionaryAccess>(
Expand Down

0 comments on commit a4a47e2

Please sign in to comment.