mirror of
https://github.com/Noratrieb/cargo-minimize.git
synced 2026-01-16 17:25:03 +01:00
more
This commit is contained in:
parent
02b8eaa7b2
commit
e4127f3e96
1 changed files with 9 additions and 2 deletions
|
|
@ -32,8 +32,15 @@ impl<'a> Visitor<'a> {
|
||||||
fn consider_deleting_item(&mut self, item: &Item) -> bool {
|
fn consider_deleting_item(&mut self, item: &Item) -> bool {
|
||||||
match item {
|
match item {
|
||||||
Item::Impl(impl_) => {
|
Item::Impl(impl_) => {
|
||||||
self.current_path
|
self.current_path.push(format!(
|
||||||
.push(impl_.self_ty.clone().into_token_stream().to_string());
|
"({}) for ({})",
|
||||||
|
impl_
|
||||||
|
.trait_
|
||||||
|
.as_ref()
|
||||||
|
.map(|(_, tr, _)| tr.into_token_stream().to_string())
|
||||||
|
.unwrap_or_default(),
|
||||||
|
impl_.self_ty.clone().into_token_stream()
|
||||||
|
));
|
||||||
|
|
||||||
let should_retain = self.should_retain_item();
|
let should_retain = self.should_retain_item();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue