Skip to content

Commit 6cd57b9

Browse files
committed
Avoid use of 'V' generic in derive(Trace)
It's very often used for the name of map values.
1 parent 846465c commit 6cd57b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/derive/src/derive.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -936,7 +936,7 @@ impl TraceDeriveInput {
936936
unsafe impl #impl_generics #trait_name for #target_type #ty_generics #where_clause {
937937
#assoc_constants
938938
#visit_inside_gc
939-
fn #method_name<V: zerogc::GcVisitor>(&#mutability self, gc_visitor: &mut V) -> Result<(), V::Err> {
939+
fn #method_name<TargetVisitor: zerogc::GcVisitor>(&#mutability self, gc_visitor: &mut TargetVisitor) -> Result<(), TargetVisitor::Err> {
940940
#trace_impl
941941
Ok(())
942942
}

0 commit comments

Comments
 (0)