summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-08-21 19:08:47 +0200
committerLaurenz <laurmaedje@gmail.com>2021-08-21 19:08:47 +0200
commitc0377de653ed7c0ae0e253724cbbb622125fbd3f (patch)
treed69237f632084f07ce04e6d877cdea451a03f295 /src/main.rs
parent0dd4ae0a7ac0c247078df492469ff20b8a90c886 (diff)
Shorter/clearer field name for geometry types
Size { width, height } => Size { w, h } Spec { horizontal, vertical } => Spec { x, y } Gen { cross, main } => Gen { inline, block }
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index 9fa89e42..7f331f40 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -113,11 +113,11 @@ fn print_diagnostics(
for error in errors {
// The main diagnostic.
- let main = Diagnostic::error().with_message(error.message).with_labels(vec![
+ let diag = Diagnostic::error().with_message(error.message).with_labels(vec![
Label::primary(error.span.source, error.span.to_range()),
]);
- term::emit(&mut writer, &config, sources, &main)?;
+ term::emit(&mut writer, &config, sources, &diag)?;
// Stacktrace-like helper diagnostics.
for point in error.trace {