diff options
| author | Laurenz <laurmaedje@gmail.com> | 2019-10-13 13:10:21 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2019-10-13 13:10:21 +0200 |
| commit | 7c0899b5373cdc4f1083a0a8515856207c431423 (patch) | |
| tree | ee1ecade4022f1fa3f666feb55097f7bdcae69ed /src/library/align.rs | |
| parent | 5c04185892947969005ffcf6412d7190dafb3a79 (diff) | |
Run rustfmt 🚿
Diffstat (limited to 'src/library/align.rs')
| -rw-r--r-- | src/library/align.rs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/library/align.rs b/src/library/align.rs index 322a9efa..4dc5f53c 100644 --- a/src/library/align.rs +++ b/src/library/align.rs @@ -1,7 +1,6 @@ use super::prelude::*; use crate::layout::Alignment; - /// Allows to align content in different ways. #[derive(Debug, PartialEq)] pub struct AlignFunc { @@ -10,9 +9,8 @@ pub struct AlignFunc { } impl Function for AlignFunc { - fn parse(header: &FuncHeader, body: Option<&str>, ctx: ParseContext) - -> ParseResult<Self> where Self: Sized { - + fn parse(header: &FuncHeader, body: Option<&str>, ctx: ParseContext) -> ParseResult<Self> + where Self: Sized { if header.args.len() != 1 || !header.kwargs.is_empty() { return err("expected exactly one positional argument specifying the alignment"); } @@ -24,7 +22,10 @@ impl Function for AlignFunc { s => return err(format!("invalid alignment specifier: '{}'", s)), } } else { - return err(format!("expected alignment specifier, found: '{}'", header.args[0])); + return err(format!( + "expected alignment specifier, found: '{}'", + header.args[0] + )); }; let body = if let Some(body) = body { |
