From 319991e77fa56182a8636a302071950cd35f72b1 Mon Sep 17 00:00:00 2001 From: Jos van den Oever Date: Sun, 9 Dec 2018 23:45:46 +0100 Subject: [PATCH] Add anonymous parameter placeholders to generated code As of Rust 1.31, missing parameter placeholders in functions give a compile error. This commit adds them. --- src/rust.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rust.rs b/src/rust.rs index 1b69ee8..8abbc46 100644 --- a/src/rust.rs +++ b/src/rust.rs @@ -558,7 +558,7 @@ pub trait {}Trait {{ false }} fn fetch_more(&mut self) {{}} - fn sort(&mut self, u8, SortOrder) {{}}" + fn sort(&mut self, _: u8, _: SortOrder) {{}}" )?; } else if o.object_type == ObjectType::Tree { writeln!(