couple of clippy::perf fixes
This commit is contained in:
parent
83356b78c4
commit
e3036df003
11 changed files with 14 additions and 16 deletions
|
@ -899,7 +899,7 @@ fn debug_with_context_rec<V: Debug + Eq>(
|
|||
let info_elem = map.places[child].proj_elem.unwrap();
|
||||
let child_place_str = match info_elem {
|
||||
TrackElem::Field(field) => {
|
||||
if place_str.starts_with("*") {
|
||||
if place_str.starts_with('*') {
|
||||
format!("({}).{}", place_str, field.index())
|
||||
} else {
|
||||
format!("{}.{}", place_str, field.index())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue