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 /tests | |
| parent | 5c04185892947969005ffcf6412d7190dafb3a79 (diff) | |
Run rustfmt 🚿
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/layouting.rs | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/tests/layouting.rs b/tests/layouting.rs index 0174b097..cb7b75ef 100644 --- a/tests/layouting.rs +++ b/tests/layouting.rs @@ -1,15 +1,14 @@ use std::fs::{self, File}; -use std::io::{Write, Read, BufWriter}; +use std::io::{BufWriter, Read, Write}; use std::process::Command; -use typst::Typesetter; +use typst::export::pdf::PdfExporter; use typst::layout::LayoutAction; use typst::toddle::query::FileSystemFontProvider; -use typst::export::pdf::PdfExporter; +use typst::Typesetter; const CACHE_DIR: &str = "test-cache"; - fn main() { let mut perfect_match = false; let mut filter = Vec::new(); @@ -31,9 +30,7 @@ fn main() { for entry in fs::read_dir("tests/layouts/").unwrap() { let path = entry.unwrap().path(); - let name = path - .file_stem().unwrap() - .to_str().unwrap(); + let name = path.file_stem().unwrap().to_str().unwrap(); let matches = if perfect_match { filter.iter().any(|pattern| name == pattern) |
