From 5d8e87d923482a35faca338b986e29ee9b52c04a Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 28 Feb 2022 16:24:03 +0800 Subject: [PATCH] more readable type annotation error string --- nac3core/src/toplevel/composer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nac3core/src/toplevel/composer.rs b/nac3core/src/toplevel/composer.rs index 70c03c53..208e2089 100644 --- a/nac3core/src/toplevel/composer.rs +++ b/nac3core/src/toplevel/composer.rs @@ -1076,7 +1076,7 @@ impl TopLevelComposer { .as_ref() .ok_or_else(|| { format!( - "type annotation for `{}` at {} needed", + "type annotation needed for `{}` at {}", x.node.arg, x.location ) })?