]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_mir_dataflow/src/value_analysis.rs
Auto merge of #105119 - JakobDegen:inline-experiments, r=cjgillot
[rust.git] / compiler / rustc_mir_dataflow / src / value_analysis.rs
index db4b0a3deda9dba74aea18e8e184eac255f55b70..cc69a1bb02db19cac318ec2c149bd18d7dcfc9bf 100644 (file)
@@ -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())