#Unused derives

2 messages · Page 1 of 1 (latest)

civic stirrup
#

Suppose i derive(Clone) on my struct but do not use the .clone() method in my application, does the impl get compiled away?

lament forge
#

Yeah, that's true of basically any function that isn't used.