Skip to content

Commit 4858a37

Browse files
committed
op_ref
1 parent 0df3049 commit 4858a37

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,6 @@ needless_doctest_main = "allow"
179179
new_without_default = "allow"
180180
non_canonical_clone_impl = "allow"
181181
non_canonical_partial_ord_impl = "allow"
182-
op_ref = "allow"
183182
option_map_unit_fn = "allow"
184183
partialeq_to_none = "allow"
185184
ptr_arg = "allow"

crates/hir-def/src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -733,9 +733,7 @@ pub struct InTypeConstLoc {
733733

734734
impl PartialEq for InTypeConstLoc {
735735
fn eq(&self, other: &Self) -> bool {
736-
self.id == other.id
737-
&& self.owner == other.owner
738-
&& &*self.expected_ty == &*other.expected_ty
736+
self.id == other.id && self.owner == other.owner && *self.expected_ty == *other.expected_ty
739737
}
740738
}
741739

crates/load-cargo/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ fn expander_to_proc_macro(
358358
proc_macro_api::ProcMacroKind::Attr => ProcMacroKind::Attr,
359359
};
360360
let expander: sync::Arc<dyn ProcMacroExpander> =
361-
if dummy_replace.iter().any(|replace| &**replace == name) {
361+
if dummy_replace.iter().any(|replace| **replace == name) {
362362
match kind {
363363
ProcMacroKind::Attr => sync::Arc::new(IdentityExpander),
364364
_ => sync::Arc::new(EmptyExpander),

crates/project-model/src/cargo_workspace.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ impl CargoWorkspace {
368368
name,
369369
root: AbsPathBuf::assert(src_path.into()),
370370
kind: TargetKind::new(&kind),
371-
is_proc_macro: &*kind == ["proc-macro"],
371+
is_proc_macro: *kind == ["proc-macro"],
372372
required_features,
373373
});
374374
pkg_data.targets.push(tgt);

0 commit comments

Comments
 (0)