diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-10-02 20:22:08 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-10-02 20:22:08 +0200 |
| commit | dc8d5d2f1eadb19d0351fa214400d7ec7ba31a20 (patch) | |
| tree | 64c0ebb599c480270ac529edbc14b02534853828 /src/library/align.rs | |
| parent | 904bc392abdcd7c48fa4541594f6218168afb61f (diff) | |
Small improvements 🧺
Diffstat (limited to 'src/library/align.rs')
| -rw-r--r-- | src/library/align.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/align.rs b/src/library/align.rs index 350724f7..d36108a4 100644 --- a/src/library/align.rs +++ b/src/library/align.rs @@ -35,7 +35,7 @@ pub async fn align(_: Span, mut args: DictValue, ctx: LayoutContext<'_>) -> Pass // if the alignment is `center` for a positional argument. Then we set // `deferred_center` to true and handle the situation once we know more. if let Some(axis) = axis { - if align.v.axis().map(|a| a != axis).unwrap_or(false) { + if align.v.axis().map_or(false, |a| a != axis) { error!( @f, align.span, "invalid alignment {} for {} axis", align.v, axis, |
