rust-lang/rust-clippy

improve suggestions around `&*` and don't add parenthesis

Open

#1431 aperta il 10 gen 2017

Vedi su GitHub
 (2 commenti) (0 reazioni) (0 assegnatari)Rust (1391 fork)batch import
C-enhancementL-suggestiongood first issue

Metriche repository

Star
 (10.406 star)
Metriche merge PR
 (Merge medio 19g 22h) (113 PR mergiate in 30 g)

Descrizione

~~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 &*

Guida contributor