diff --git a/lib/codegen/rust/hyper.dart b/lib/codegen/rust/hyper.dart index f8a6eabc..fb99e2d5 100644 --- a/lib/codegen/rust/hyper.dart +++ b/lib/codegen/rust/hyper.dart @@ -42,7 +42,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> { final String kTemplateHeadersFormData = """ {% for key, val in headers %} - .header("{{ key }}", "{{ val }}"){% if not loop.last %};{% endif %} + .header("{{ key }}", "{{ val }}"){% if loop.last %};{% endif %} {% endfor %} """;