mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
relax Sized bound for debug::type_name
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
+2
-2
@@ -86,11 +86,11 @@ pub fn panic_str(p: &Box<dyn Any + Send>) -> &'static str { p.downcast_ref::<&st
|
|||||||
|
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
#[must_use]
|
#[must_use]
|
||||||
pub fn rttype_name<T>(_: &T) -> &'static str { type_name::<T>() }
|
pub fn rttype_name<T: ?Sized>(_: &T) -> &'static str { type_name::<T>() }
|
||||||
|
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
#[must_use]
|
#[must_use]
|
||||||
pub fn type_name<T>() -> &'static str { std::any::type_name::<T>() }
|
pub fn type_name<T: ?Sized>() -> &'static str { std::any::type_name::<T>() }
|
||||||
|
|
||||||
#[must_use]
|
#[must_use]
|
||||||
#[inline]
|
#[inline]
|
||||||
|
|||||||
Reference in New Issue
Block a user