rust-lang/rust-clippy
Auf GitHub ansehenimprove suggestions around `&*` and don't add parenthesis
Open
#1.431 geöffnet am 10. Jan. 2017
C-enhancementL-suggestiongood first issue
Repository-Metriken
- Stars
- (10.406 Stars)
- PR-Merge-Metriken
- (Durchschn. Merge 19T 22h) (113 gemergte PRs in 30 T)
Beschreibung
~~Is there ever a reason to have an unsized type and ref it instead of having a reference to an unsized type?
I think we should simply suggest to use let p: &str = &*"hello"; instead (and make sure our quoting code erases &* or sth)
E-medium because I'm wary of weird consequences for cases I didn't think about.~~
make sure our quoting code erases &*