mirror of
https://github.com/erg-lang/erg.git
synced 2025-10-01 05:11:09 +00:00
Eliminate todo!()
s
This commit is contained in:
parent
5b01c048af
commit
7d25c1b54d
5 changed files with 15 additions and 15 deletions
|
@ -269,7 +269,7 @@ macro_rules! fn_name {
|
|||
fn type_name_of<T>(_: T) -> &'static str {
|
||||
std::any::type_name::<T>()
|
||||
}
|
||||
let name = type_name_of(dummy).rsplit("::").nth(1).unwrap();
|
||||
let name = type_name_of(dummy).rsplit("::").nth(1).unwrap_or("?");
|
||||
&name[..]
|
||||
}};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue