The Crossbow Expert feat gives three benefits, the first of which is explicitly tied to crossbows and the last of which to only hand crossbows. But in the middle, there is:
Being within 5 feet of a hostile creature doesn't impose disadvantage on your ranged attack rolls
Notably missing is a qualifier like "when attacking with a crossbow". Does this mean that the benefit applies to other ranged weapons and to spells which require ranged attack rolls? Or does the name of the feat itself limit this to crossbows?