Update replace_derive_with_manual_impl.rs

This commit is contained in:
Yoshua Wuyts 2021-08-08 16:24:14 +02:00
parent a2e5fc659d
commit e26ba72333

View File

@ -171,7 +171,7 @@ fn impl_def_from_trait(
if let ast::AssocItem::Fn(func) = &first_assoc_item {
match trait_path.segment().unwrap().name_ref().unwrap().text().as_str() {
"Debug" => gen_debug_impl(adt, func, annotated_name),
_ => {} // => If we don't know about the trait, the function body is left as `todo!`.
_ => {}
};
}
Some((impl_def, first_assoc_item))