mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 21:54:42 +00:00
double_parens
This commit is contained in:
parent
4184c6af0d
commit
882289b229
2 changed files with 2 additions and 1 deletions
|
@ -172,7 +172,6 @@ borrow_deref_ref = "allow"
|
|||
clone_on_copy = "allow"
|
||||
derivable_impls = "allow"
|
||||
derived_hash_with_manual_eq = "allow"
|
||||
double_parens = "allow"
|
||||
explicit_auto_deref = "allow"
|
||||
field_reassign_with_default = "allow"
|
||||
forget_non_drop = "allow"
|
||||
|
|
|
@ -272,6 +272,7 @@ const STACK_OFFSET: usize = 1 << 30;
|
|||
const HEAP_OFFSET: usize = 1 << 29;
|
||||
|
||||
impl Address {
|
||||
#[allow(clippy::double_parens)]
|
||||
fn from_bytes(it: &[u8]) -> Result<Self> {
|
||||
Ok(Address::from_usize(from_bytes!(usize, it)))
|
||||
}
|
||||
|
@ -1661,6 +1662,7 @@ impl Evaluator<'_> {
|
|||
})
|
||||
}
|
||||
|
||||
#[allow(clippy::double_parens)]
|
||||
fn allocate_const_in_heap(&mut self, locals: &Locals, konst: &Const) -> Result<Interval> {
|
||||
let ty = &konst.data(Interner).ty;
|
||||
let chalk_ir::ConstValue::Concrete(c) = &konst.data(Interner).value else {
|
||||
|
|
Loading…
Reference in a new issue