236 |
#[cfg(feature = "image-data")]
|
237 |
#[allow(clippy::identity_op, clippy::erasing_op)]
|
238 |
#[must_use]
|
298 |
#[cfg(feature = "image-data")]
|
299 |
#[allow(clippy::identity_op, clippy::erasing_op)]
|
300 |
#[must_use]
|
33 |
/// Const assert hack
|
34 |
#[allow(clippy::erasing_op)]
|
35 |
pub const NOT_EQ: isize = 0 / (R as isize - L as isize);
|
870 |
#[test]
|
871 |
#[allow(clippy::erasing_op)]
|
872 |
fn poly_mul() {
|
237 |
#[allow(clippy::identity_op)]
|
238 |
#[allow(clippy::erasing_op)]
|
239 |
#[test]
|
89 |
#[test]
|
90 |
#[allow(clippy::op_ref, clippy::erasing_op)]
|
91 |
fn test_mul_ubig_primitive() {
|
227 |
clippy::identity_op,
|
228 |
clippy::erasing_op
|
229 |
)]
|
3 |
#[allow(clippy::identity_op)]
|
4 |
#[allow(clippy::erasing_op)]
|
5 |
fn eaglesong_permutation(state: &mut [u32]) {
|
4 |
#[test]
|
5 |
#[allow(clippy::erasing_op)]
|
6 |
#[allow(clippy::identity_op)]
|
281 |
#[allow(clippy::identity_op)]
|
282 |
#[allow(clippy::erasing_op)]
|
283 |
fn dither_image(mut image: ImgRefMut<RGBA8>) {
|
207 |
#[allow(clippy::identity_op)]
|
208 |
#[allow(clippy::erasing_op)]
|
209 |
fn resized_binary_alpha(
|
1626 |
#[test]
|
1627 |
#[allow(clippy::erasing_op, clippy::identity_op)]
|
1628 |
fn round_to_even_f32() {
|
1721 |
#[test]
|
1722 |
#[allow(clippy::erasing_op, clippy::identity_op)]
|
1723 |
fn round_to_even_f64() {
|
1697 |
#[test]
|
1698 |
#[allow(clippy::erasing_op, clippy::identity_op)]
|
1699 |
fn round_to_even_f32() {
|
1792 |
#[test]
|
1793 |
#[allow(clippy::erasing_op, clippy::identity_op)]
|
1794 |
fn round_to_even_f64() {
|
201 |
// searching in to offsets of each line, so we allow it.
|
202 |
#[allow(clippy::identity_op, clippy::erasing_op)]
|
203 |
#[test_case(44 * 0 + 0 => Some("1".to_owned()))]
|
82 |
#[test]
|
83 |
#[allow(clippy::op_ref, clippy::erasing_op)]
|
84 |
fn test_mul_ubig_primitive() {
|
103 |
#[allow(clippy::erasing_op)]
|
104 |
#[allow(clippy::identity_op)]
|
74 |
#[cfg(target_pointer_width = "64")]
|
75 |
#[allow(clippy::erasing_op)]
|
76 |
#[test]
|
96 |
#[cfg(target_pointer_width = "64")]
|
97 |
#[allow(clippy::erasing_op)]
|
98 |
#[rustfmt::skip]
|
119 |
#[cfg(target_pointer_width = "32")]
|
120 |
#[allow(clippy::erasing_op)]
|
121 |
#[test]
|
141 |
#[cfg(target_pointer_width = "32")]
|
142 |
#[allow(clippy::erasing_op)]
|
143 |
#[test]
|
90 |
#[cfg(target_pointer_width = "64")]
|
91 |
#[allow(clippy::erasing_op)]
|
92 |
#[rustfmt::skip]
|
118 |
#[cfg(target_pointer_width = "64")]
|
119 |
#[allow(clippy::erasing_op)]
|
120 |
#[rustfmt::skip]
|
146 |
#[cfg(target_pointer_width = "32")]
|
147 |
#[allow(clippy::erasing_op)]
|
148 |
#[test]
|
173 |
#[cfg(target_pointer_width = "32")]
|
174 |
#[allow(clippy::erasing_op)]
|
175 |
#[test]
|
631 |
/// Returns an error if the byte slice cannot be parsed into a `RangeProof`.
|
632 |
#[allow(clippy::erasing_op)]
|
633 |
pub fn from_bytes(slice: &[u8]) -> Result<RangeProof, ProofError> {
|
467 |
/// WARNING: Measurements **MUST** be ordered in positive chronological time.
|
468 |
#[allow(clippy::erasing_op)]
|
469 |
pub fn process_measurements(&mut self, measurements: &[Msr]) -> Result<(), NyxError> {
|
177 |
#[allow(clippy::erasing_op)]
|
178 |
fn for_duration_channel_option(
|
894 |
#[test]
|
895 |
#[allow(clippy::erasing_op)]
|
896 |
fn poly_mul() {
|
333 |
#[allow(clippy::identity_op, clippy::erasing_op)]
|
334 |
#[target_feature(enable = "avx2")]
|
197 |
#[cold_for_target_arch("x86_64")]
|
198 |
#[allow(clippy::erasing_op, clippy::identity_op, clippy::neg_multiply)]
|
199 |
pub(crate) unsafe fn cdef_filter_block<T: Pixel, U: Pixel>(
|
79 |
#[inline(always)]
|
80 |
#[allow(clippy::identity_op, clippy::erasing_op)]
|
81 |
fn hadamard4_1d<
|
102 |
#[inline(always)]
|
103 |
#[allow(clippy::identity_op, clippy::erasing_op)]
|
104 |
fn hadamard8_1d<
|
832 |
impl<T: Pixel> FrameInvariants<T> {
|
833 |
#[allow(clippy::erasing_op, clippy::identity_op)]
|
834 |
/// # Panics
|
63 |
/// (used with `select_bits`).
|
64 |
#[allow(clippy::erasing_op)]
|
65 |
const SLEEPING_SHIFT: usize = 0 * THREADS_BITS;
|
139 |
/// memory zeroed out (by virtue of the zero_on_drop crate).
|
140 |
#[allow(clippy::erasing_op)] // This is for 0 * uT
|
141 |
pub fn build_with_reward(
|
731 |
/// This function does NOT check that inputs come from the UTXO set
|
732 |
#[allow(clippy::erasing_op)] // This is for 0 * uT
|
733 |
pub fn validate_internal_consistency(
|
281 |
#[inline(never)]
|
282 |
#[allow(clippy::erasing_op)]
|
283 |
#[allow(clippy::identity_op)]
|
2163 |
#[allow(clippy::erasing_op, clippy::identity_op)]
|
2164 |
let expected = cmp::max(0 * 3 + 2 * 5 + 1 * 7, 0 * 3 + 0 * 5 + 1 * 7);
|
88 |
#[allow(clippy::erasing_op)]
|
89 |
const IDLE_SHIFT: u32 = Self::STATE_BITS * 0;
|
3448 |
#[test]
|
3449 |
#[allow(clippy::erasing_op, clippy::identity_op)]
|
3450 |
fn subresource_range_iterator() {
|
610 |
pub fn new_default(device: Arc<Device>) -> Self {
|
611 |
#[allow(clippy::erasing_op, clippy::identity_op)]
|
612 |
let create_info = GenericMemoryAllocatorCreateInfo {
|
636 |
pub fn new_default(device: Arc<Device>) -> Self {
|
637 |
#[allow(clippy::erasing_op, clippy::identity_op)]
|
638 |
let create_info = GenericMemoryAllocatorCreateInfo {
|
84 |
#[allow(clippy::erasing_op, clippy::identity_op)]
|
85 |
fn shift_rows(block: &mut [u8; 16]) {
|
201 |
/// Offset of the `memory_grow` field.
|
202 |
#[allow(clippy::erasing_op)]
|
203 |
pub const fn offset_memory_grow() -> u8 {
|
481 |
impl Ctx {
|
482 |
#[allow(clippy::erasing_op)] // TODO
|
483 |
pub const fn offset_memories() -> u8 {
|
572 |
/// Offset to the `vmctx` field.
|
573 |
#[allow(clippy::erasing_op)]
|
574 |
pub const fn offset_vmctx() -> u8 {
|
607 |
/// Offset to the `func` field.
|
608 |
#[allow(clippy::erasing_op)] // TODO
|
609 |
pub const fn offset_func() -> u8 {
|
640 |
/// Offset to the `base` field.
|
641 |
#[allow(clippy::erasing_op)] // TODO
|
642 |
pub const fn offset_base() -> u8 {
|
201 |
/// Offset of the `memory_grow` field.
|
202 |
#[allow(clippy::erasing_op)]
|
203 |
pub const fn offset_memory_grow() -> u8 {
|
481 |
impl Ctx {
|
482 |
#[allow(clippy::erasing_op)] // TODO
|
483 |
pub const fn offset_memories() -> u8 {
|
572 |
/// Offset to the `vmctx` field.
|
573 |
#[allow(clippy::erasing_op)]
|
574 |
pub const fn offset_vmctx() -> u8 {
|
607 |
/// Offset to the `func` field.
|
608 |
#[allow(clippy::erasing_op)] // TODO
|
609 |
pub const fn offset_func() -> u8 {
|
640 |
/// Offset to the `base` field.
|
641 |
#[allow(clippy::erasing_op)] // TODO
|
642 |
pub const fn offset_base() -> u8 {
|
201 |
/// Offset of the `memory_grow` field.
|
202 |
#[allow(clippy::erasing_op)]
|
203 |
pub const fn offset_memory_grow() -> u8 {
|
481 |
impl Ctx {
|
482 |
#[allow(clippy::erasing_op)] // TODO
|
483 |
pub const fn offset_memories() -> u8 {
|
572 |
/// Offset to the `vmctx` field.
|
573 |
#[allow(clippy::erasing_op)]
|
574 |
pub const fn offset_vmctx() -> u8 {
|
607 |
/// Offset to the `func` field.
|
608 |
#[allow(clippy::erasing_op)] // TODO
|
609 |
pub const fn offset_func() -> u8 {
|
640 |
/// Offset to the `base` field.
|
641 |
#[allow(clippy::erasing_op)] // TODO
|
642 |
pub const fn offset_base() -> u8 {
|
354 |
/// The offset of the `body` field.
|
355 |
#[allow(clippy::erasing_op)]
|
356 |
pub const fn vmfunction_import_body(&self) -> u8 {
|
379 |
/// The offset of the `address` field.
|
380 |
#[allow(clippy::erasing_op)]
|
381 |
pub const fn vmdynamicfunction_import_context_address(&self) -> u8 {
|
408 |
/// The offset of the `definition` field.
|
409 |
#[allow(clippy::erasing_op)]
|
410 |
pub const fn vmtable_import_definition(&self) -> u8 {
|
428 |
/// The offset of the `base` field.
|
429 |
#[allow(clippy::erasing_op)]
|
430 |
pub const fn vmtable_definition_base(&self) -> u8 {
|
453 |
/// The offset of the `from` field.
|
454 |
#[allow(clippy::erasing_op)]
|
455 |
pub const fn vmmemory_import_definition(&self) -> u8 {
|
122 |
/// The offset of the `body` field.
|
123 |
#[allow(clippy::erasing_op)]
|
124 |
pub const fn vmfunction_import_body(&self) -> u8 {
|
146 |
/// The offset of the `address` field.
|
147 |
#[allow(clippy::erasing_op)]
|
148 |
pub const fn vmdynamicfunction_import_context_address(&self) -> u8 {
|
179 |
/// The offset of the `definition` field.
|
180 |
#[allow(clippy::erasing_op)]
|
181 |
pub const fn vmtable_import_definition(&self) -> u8 {
|
203 |
/// The offset of the `base` field.
|
204 |
#[allow(clippy::erasing_op)]
|
205 |
pub const fn vmtable_definition_base(&self) -> u8 {
|
232 |
/// The offset of the `from` field.
|
233 |
#[allow(clippy::erasing_op)]
|
234 |
pub const fn vmmemory_import_definition(&self) -> u8 {
|
101 |
/// The offset of the `func_ptr` field.
|
102 |
#[allow(clippy::erasing_op)]
|
103 |
#[inline]
|
171 |
/// The offset of the `base` field.
|
172 |
#[allow(clippy::erasing_op)]
|
173 |
#[inline]
|
447 |
/// The offset of the `body` field.
|
448 |
#[allow(clippy::erasing_op)]
|
449 |
#[inline]
|
479 |
/// The offset of the `from` field.
|
480 |
#[allow(clippy::erasing_op)]
|
481 |
#[inline]
|
502 |
/// The offset of the `base` field.
|
503 |
#[allow(clippy::erasing_op)]
|
504 |
#[inline]
|
1105 |
// just to make things more readable when populating expected values
|
1106 |
#[allow(clippy::erasing_op)]
|
1107 |
#[allow(clippy::identity_op)]
|
12 |
#[allow(clippy::erasing_op)]
|
13 |
const MM2S_DMACR: isize = 0x0 / 4;
|
13 |
#[allow(clippy::erasing_op)]
|
14 |
const MM2S_DMACR: isize = 0x0 / 4;
|
64 |
#![allow(
|
65 |
clippy::erasing_op,
|
66 |
clippy::identity_op,
|
1 |
#![allow(clippy::too_many_lines, clippy::erasing_op)]
|
8 |
// Note: consistency for unrolled, scaled offset loops
|
9 |
#![allow(clippy::erasing_op)]
|
10 |
#![allow(clippy::identity_op)]
|
7 |
// We have a bunch of expressions with +0 for clarity of where the 0 comes from
|
8 |
#![allow(clippy::identity_op,clippy::erasing_op)]
|
1 |
#![allow(
|
2 |
clippy::erasing_op,
|
3 |
clippy::identity_op,
|
1 |
#![allow(
|
2 |
clippy::erasing_op,
|
3 |
clippy::identity_op,
|
1 |
#![allow(
|
2 |
clippy::erasing_op,
|
3 |
clippy::identity_op,
|
195 |
mod test {
|
196 |
#![allow(clippy::erasing_op)]
|
197 |
use super::*;
|