Small code quality improvement to Rust generation: so far, the return type of a function was always printed (through the -> ty notation).
When it is unit, it is not needed and raises linter warnings.
This PR special-cases the return type unit during printing of function declarations.
Small code quality improvement to Rust generation: so far, the return type of a function was always printed (through the
-> ty
notation). When it is unit, it is not needed and raises linter warnings. This PR special-cases the return type unit during printing of function declarations.