Open mxk opened 1 year ago
It's currently not possible to use name_of_type!(Self) to get the actual type name. If there is a way to support this, that would be great, but until then, it would be nice to automatically suppress clippy::use_self warning in the macro.
name_of_type!(Self)
clippy::use_self
stringify!(Self) will always return Self - instead you may be able to use std::any::type_name::<Self>()
stringify!(Self)
Self
std::any::type_name::<Self>()
It's currently not possible to use
name_of_type!(Self)
to get the actual type name. If there is a way to support this, that would be great, but until then, it would be nice to automatically suppressclippy::use_self
warning in the macro.