summaryrefslogtreecommitdiff
path: root/src/paper.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2020-08-30 22:18:55 +0200
committerLaurenz <laurmaedje@gmail.com>2020-08-30 22:18:55 +0200
commit181f756a9e8f7b664101058fe91e36b3858c2d02 (patch)
tree542e7c694e91d8cc91fa97a328e9bda0567db679 /src/paper.rs
parent0d44cf532136f3ba8e34d6f967f9e844cfb9c3f0 (diff)
Format everything with rustfmt! 💚
Diffstat (limited to 'src/paper.rs')
-rw-r--r--src/paper.rs22
1 files changed, 12 insertions, 10 deletions
diff --git a/src/paper.rs b/src/paper.rs
index 97f76703..266f22d1 100644
--- a/src/paper.rs
+++ b/src/paper.rs
@@ -39,19 +39,21 @@ pub enum PaperClass {
impl PaperClass {
/// The default margins for this page class.
pub fn default_margins(self) -> Value4<ScaleLength> {
- let values = |l, t, r, b| Value4::new(
- ScaleLength::Scaled(l),
- ScaleLength::Scaled(t),
- ScaleLength::Scaled(r),
- ScaleLength::Scaled(b),
- );
+ let values = |l, t, r, b| {
+ Value4::new(
+ ScaleLength::Scaled(l),
+ ScaleLength::Scaled(t),
+ ScaleLength::Scaled(r),
+ ScaleLength::Scaled(b),
+ )
+ };
match self {
- Self::Custom => values(0.1190, 0.0842, 0.1190, 0.0842),
- Self::Base => values(0.1190, 0.0842, 0.1190, 0.0842),
- Self::US => values(0.1760, 0.1092, 0.1760, 0.0910),
+ Self::Custom => values(0.1190, 0.0842, 0.1190, 0.0842),
+ Self::Base => values(0.1190, 0.0842, 0.1190, 0.0842),
+ Self::US => values(0.1760, 0.1092, 0.1760, 0.0910),
Self::Newspaper => values(0.0455, 0.0587, 0.0455, 0.0294),
- Self::Book => values(0.1200, 0.0852, 0.1500, 0.0965),
+ Self::Book => values(0.1200, 0.0852, 0.1500, 0.0965),
}
}
}