chore: clippy fix rust style
This commit is contained in:
@@ -102,8 +102,8 @@ fn map_std_type_name(name: &str, shorthands: bool) -> &str {
|
||||
};
|
||||
}
|
||||
|
||||
if name.starts_with("rhai::") {
|
||||
map_std_type_name(&name[6..], shorthands)
|
||||
if let Some(stripped) = name.strip_prefix("rhai::") {
|
||||
map_std_type_name(stripped, shorthands)
|
||||
} else {
|
||||
name
|
||||
}
|
||||
|
Reference in New Issue
Block a user