Skip to content

Commit fda71d6

Browse files
committed
Push a char instead of a str with len one into a String
1 parent e9920ef commit fda71d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_typeck/src/check/upvar.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1211,7 +1211,7 @@ fn construct_place_string(tcx: TyCtxt<'_>, place: &Place<'tcx>) -> String {
12111211
ProjectionKind::Subslice => String::from("Subslice"),
12121212
};
12131213
if i != 0 {
1214-
projections_str.push_str(",");
1214+
projections_str.push(',');
12151215
}
12161216
projections_str.push_str(proj.as_str());
12171217
}

0 commit comments

Comments
 (0)