mirror of
https://github.com/Noratrieb/cargo-minimize.git
synced 2026-01-16 01:05:02 +01:00
Add a split-use pass.
It transforms "use std::io::{Read, Write}" into
"use std::io::Read; use std::io::Write"
Which later allows to remove just precisely the statements
we do not need, and leave rest be.
The test from the last commit does not pass, but that
is seemingly to do with the test harness setup, since it
works fine locally.
This commit is contained in:
parent
fdf0066e58
commit
a70aedada5
3 changed files with 142 additions and 1 deletions
|
|
@ -2,8 +2,9 @@ mod everybody_loops;
|
|||
mod field_deleter;
|
||||
mod item_deleter;
|
||||
mod privatize;
|
||||
mod split_use;
|
||||
|
||||
pub use self::{
|
||||
everybody_loops::EverybodyLoops, field_deleter::FieldDeleter, item_deleter::ItemDeleter,
|
||||
privatize::Privatize,
|
||||
privatize::Privatize, split_use::SplitUse,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue