Skip to content

Commit 882289b

Browse files
committed
double_parens
1 parent 4184c6a commit 882289b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,6 @@ borrow_deref_ref = "allow"
172172
clone_on_copy = "allow"
173173
derivable_impls = "allow"
174174
derived_hash_with_manual_eq = "allow"
175-
double_parens = "allow"
176175
explicit_auto_deref = "allow"
177176
field_reassign_with_default = "allow"
178177
forget_non_drop = "allow"

crates/hir-ty/src/mir/eval.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ const STACK_OFFSET: usize = 1 << 30;
272272
const HEAP_OFFSET: usize = 1 << 29;
273273

274274
impl Address {
275+
#[allow(clippy::double_parens)]
275276
fn from_bytes(it: &[u8]) -> Result<Self> {
276277
Ok(Address::from_usize(from_bytes!(usize, it)))
277278
}
@@ -1661,6 +1662,7 @@ impl Evaluator<'_> {
16611662
})
16621663
}
16631664

1665+
#[allow(clippy::double_parens)]
16641666
fn allocate_const_in_heap(&mut self, locals: &Locals, konst: &Const) -> Result<Interval> {
16651667
let ty = &konst.data(Interner).ty;
16661668
let chalk_ir::ConstValue::Concrete(c) = &konst.data(Interner).value else {

0 commit comments

Comments
 (0)