diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-08-30 22:18:55 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-08-30 22:18:55 +0200 |
| commit | 181f756a9e8f7b664101058fe91e36b3858c2d02 (patch) | |
| tree | 542e7c694e91d8cc91fa97a328e9bda0567db679 /main | |
| parent | 0d44cf532136f3ba8e34d6f967f9e844cfb9c3f0 (diff) | |
Format everything with rustfmt! 💚
Diffstat (limited to 'main')
| -rw-r--r-- | main/main.rs | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/main/main.rs b/main/main.rs index 65b70d38..a0ca9edd 100644 --- a/main/main.rs +++ b/main/main.rs @@ -30,8 +30,7 @@ fn main() { panic!("source and destination path are the same"); } - let src = read_to_string(src_path) - .expect("failed to read from source file"); + let src = read_to_string(src_path).expect("failed to read from source file"); let mut index = FsIndex::new(); index.search_dir("fonts"); @@ -55,16 +54,16 @@ fn main() { "{}: {}:{}:{} - {}:{}: {}", format!("{:?}", diagnostic.v.level).to_lowercase(), src_path.display(), - span.start.line + 1, span.start.column + 1, - span.end.line + 1, span.end.column + 1, + span.start.line + 1, + span.start.column + 1, + span.end.line + 1, + span.end.column + 1, diagnostic.v.message, ); } - let file = File::create(&dest_path) - .expect("failed to create output file"); + let file = File::create(&dest_path).expect("failed to create output file"); let writer = BufWriter::new(file); - pdf::export(&layouts, &loader, writer) - .expect("failed to export pdf"); + pdf::export(&layouts, &loader, writer).expect("failed to export pdf"); } |
