Remove unnecessary sigils around Symbol::as_str()
calls.
This commit is contained in:
parent
8cddcd39ba
commit
056d48a2c9
104 changed files with 189 additions and 192 deletions
|
@ -516,7 +516,7 @@ fn push_unqualified_item_name(
|
|||
) {
|
||||
match disambiguated_data.data {
|
||||
DefPathData::CrateRoot => {
|
||||
output.push_str(&tcx.crate_name(def_id.krate).as_str());
|
||||
output.push_str(tcx.crate_name(def_id.krate).as_str());
|
||||
}
|
||||
DefPathData::ClosureExpr if tcx.generator_kind(def_id).is_some() => {
|
||||
// Generators look like closures, but we want to treat them differently
|
||||
|
@ -529,7 +529,7 @@ fn push_unqualified_item_name(
|
|||
}
|
||||
_ => match disambiguated_data.data.name() {
|
||||
DefPathDataName::Named(name) => {
|
||||
output.push_str(&name.as_str());
|
||||
output.push_str(name.as_str());
|
||||
}
|
||||
DefPathDataName::Anon { namespace } => {
|
||||
if cpp_like_names(tcx) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue