rust-lang/rust-clippy

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

Open

#1 431 ouverte le 10 janv. 2017

Voir sur GitHub
 (2 commentaires) (0 réactions) (0 assignés)Rust (1 391 forks)batch import
C-enhancementL-suggestiongood first issue

Métriques du dépôt

Stars
 (10 406 stars)
Métriques de merge PR
 (Merge moyen 19j 22h) (113 PRs mergées en 30 j)

Description

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

Guide contributeur