Skip to main content

Module Eliminate

Module Eliminate 

Source
Expand description

Eliminate Module - inline single-use Rust let bindings.

Uses syn to parse Rust source files and prettyplease to re-format the result after iteratively removing intermediate variables that are used exactly once and are safe to substitute at their use site.

Invoked as:

cargo run --bin Maintain -- eliminate --path ./Source --glob "**/*.rs"
cargo run --bin Maintain -- eliminate --path ./Source/Foo.rs --dry-run

Modulesยง

CLI
Constant
Definition
Error
Fn
Logger
Process
Transform