rust-lang/rust-clippy

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

Open

#1,431 建立於 2017年1月10日

在 GitHub 查看
 (2 留言) (0 反應) (0 負責人)Rust (1,391 fork)batch import
C-enhancementL-suggestiongood first issue

倉庫指標

Star
 (10,406 star)
PR 合併指標
 (平均合併 19天 22小時) (30 天內合併 113 個 PR)

描述

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

貢獻者指南