Remove unneeded return from void functions

This commit is contained in:
David Tolnay 2020-04-04 21:52:46 -07:00
parent e0bad9300c
commit 737e02eeb1
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -821,12 +821,12 @@ fn write_rust_box_impl(out: &mut OutFile, ident: &Ident) {
writeln!(out, "template <>");
writeln!(out, "void Box<{}>::uninit() noexcept {{", inner);
writeln!(out, " return cxxbridge02$box${}$uninit(this);", instance);
writeln!(out, " cxxbridge02$box${}$uninit(this);", instance);
writeln!(out, "}}");
writeln!(out, "template <>");
writeln!(out, "void Box<{}>::drop() noexcept {{", inner);
writeln!(out, " return cxxbridge02$box${}$drop(this);", instance);
writeln!(out, " cxxbridge02$box${}$drop(this);", instance);
writeln!(out, "}}");
}