mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-19 01:50:32 +00:00
Clippy-fix explicit auto-deref
Seems like these can be safely fixed. With one, I was particularly surprised -- `Some(pats) => &**pats,` in body.rs? ``` cargo clippy --fix -- -A clippy::all -D clippy::explicit_auto_deref ```
This commit is contained in:
parent
f1785f7a21
commit
e341e996f7
20 changed files with 22 additions and 22 deletions
|
@ -427,7 +427,7 @@ impl CargoWorkspace {
|
|||
}
|
||||
|
||||
pub fn package_flag(&self, package: &PackageData) -> String {
|
||||
if self.is_unique(&*package.name) {
|
||||
if self.is_unique(&package.name) {
|
||||
package.name.clone()
|
||||
} else {
|
||||
format!("{}:{}", package.name, package.version)
|
||||
|
|
|
@ -40,7 +40,7 @@ impl ops::Deref for ManifestPath {
|
|||
type Target = AbsPath;
|
||||
|
||||
fn deref(&self) -> &Self::Target {
|
||||
&*self.file
|
||||
&self.file
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue