203 |
#[allow(clippy::identity_op)]
|
204 |
for k in (0..len).rev() {
|
239 |
/// writes a sample at current cursor positions (will offset the cursor)
|
240 |
#[allow(clippy::identity_op)]
|
241 |
fn write_sample(&mut self, truncated_sample: i16) {
|
248 |
}
|
249 |
#[allow(clippy::zero_prefixed_literal, clippy::identity_op)]
|
250 |
fn encode_u29(&mut self, u29: u32) -> io::Result<()> {
|
1506 |
/// Get the bitmask for serialization (Generated)
|
1507 |
#[allow(clippy::identity_op)]
|
1508 |
pub fn bitmask(&self) -> ShortUInt {
|
1569 |
/// Parse basic properties (Generated)
|
1570 |
#[allow(clippy::identity_op)]
|
1571 |
pub fn parse_properties<I: ParsableInput>(i: I) -> ParserResult<I, AMQPProperties> {
|
1082 |
}
|
1083 |
#[allow(clippy::identity_op)]
|
1084 |
const FIELD_COUNT: usize = 0 + 1 + 1 + 1;
|
1130 |
fn encoded_size_error_inner(list: &Error) -> usize {
|
1131 |
#[allow(clippy::identity_op)]
|
1132 |
let content_size = 0
|
1144 |
Descriptor::Ulong(29).encode(buf);
|
1145 |
#[allow(clippy::identity_op)]
|
1146 |
let content_size = 0
|
1229 |
}
|
1230 |
#[allow(clippy::identity_op)]
|
1231 |
const FIELD_COUNT: usize = 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1;
|
1347 |
fn encoded_size_open_inner(list: &Open) -> usize {
|
1348 |
#[allow(clippy::identity_op)]
|
1349 |
let content_size = 0
|
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]
|
204 |
self.reg.set(0, reg::PC, exc.address());
|
205 |
#[allow(clippy::identity_op)]
|
206 |
let new_cpsr =
|
344 |
#[allow(clippy::identity_op)]
|
345 |
impl ::planus::WriteAsPrimitive<Block> for Block {
|
6515 |
#[allow(clippy::identity_op)]
|
6516 |
impl ::planus::WriteAsPrimitive<Buffer> for Buffer {
|
6941 |
#[allow(clippy::identity_op)]
|
6942 |
impl ::planus::WriteAsPrimitive<FieldNode> for FieldNode {
|
389 |
// special case: number of bytes from exponent is > 3 and cannot fit in 2 bits
|
390 |
#[allow(clippy::identity_op)]
|
391 |
if len_e == 4 {
|
341 |
#[cfg(test)]
|
342 |
#[allow(clippy::identity_op, clippy::inconsistent_digit_grouping)] // this makes various examples easier to understand
|
343 |
pub mod tests {
|
77 |
#[test]
|
78 |
#[allow(clippy::identity_op)] // to make the values easier to understand
|
79 |
fn topping_test_serialize_with_uper() {
|
88 |
#[test]
|
89 |
#[allow(clippy::identity_op)] // to make the values easier to understand
|
90 |
fn topping_test_deserialize_with_uper() {
|
323 |
#[test]
|
324 |
#[allow(clippy::identity_op)] // to make the values easier to understand
|
325 |
fn test_crazy_list_uper() {
|
417 |
#[test]
|
418 |
#[allow(clippy::identity_op)] // to make the values easier to understand
|
419 |
fn test_transparent_important_uper_some() {
|
15 |
/// Set when the entry list is locked.
|
16 |
#[allow(clippy::identity_op)]
|
17 |
const LOCKED: usize = 1 << 0;
|
901 |
#[test]
|
902 |
#[allow(clippy::identity_op)]
|
903 |
fn poly_mul_real_number_value() {
|
337 |
#[allow(clippy::identity_op)]
|
338 |
fn od_bin_fdct8(y: &mut [i32], x: &[i32]) {
|
378 |
};
|
379 |
#[allow(clippy::identity_op)]
|
380 |
let flags: u8 = 0
|
393 |
let has_scene_bias = value.scene_bias != 0;
|
394 |
#[allow(clippy::identity_op)]
|
395 |
let flags: u8 = 0
|
484 |
.unwrap_or_default();
|
485 |
#[allow(clippy::identity_op)]
|
486 |
let flags: u8 = 0
|
590 |
.unwrap_or_default();
|
591 |
#[allow(clippy::identity_op)]
|
592 |
let flags: u8 = 0
|
1528 |
#[allow(clippy::identity_op)]
|
1529 |
#[test]
|
1550 |
#[allow(clippy::identity_op)]
|
1551 |
#[test]
|
237 |
#[allow(clippy::identity_op)]
|
238 |
#[allow(clippy::erasing_op)]
|
936 |
#[allow(clippy::identity_op)]
|
937 |
#[test]
|
32 |
// Some number of kibibytes
|
33 |
#[allow(clippy::identity_op)]
|
34 |
const FACTOR: usize = 1 * KIBIBYTE;
|
24 |
/// A bit set inside [`Event`] when there is at least one listener that has already been notified.
|
25 |
#[allow(clippy::identity_op)]
|
26 |
const NOTIFIED: usize = 1 << 0;
|
155 |
#[allow(clippy::identity_op)]
|
156 |
builder.size_limit(1 * 1024 * 1024); // max size for the regex is 1MB. Should be enough for everyone
|
68 |
/// commands.
|
69 |
#[allow(clippy::identity_op)]
|
70 |
fn process_compound(mesh: &[Instruction]) -> Vec<Instruction> {
|
41 |
#[allow(clippy::double_parens, clippy::identity_op)]
|
42 |
pub(crate) fn read_u2(bytes: &[u8], ix: &mut usize) -> Result<u16, ParseError> {
|
51 |
#[allow(clippy::double_parens, clippy::identity_op)]
|
52 |
pub(crate) fn read_u4(bytes: &[u8], ix: &mut usize) -> Result<u32, ParseError> {
|
64 |
#[allow(clippy::double_parens, clippy::identity_op)]
|
65 |
pub(crate) fn read_u8(bytes: &[u8], ix: &mut usize) -> Result<u64, ParseError> {
|
1378 |
///Read the value from the input at the given offset.
|
1379 |
#[allow(clippy::identity_op)]
|
1380 |
pub fn config_from_binary(data:&[u8], offset:usize) -> Result<ConfigurationValue,std::string::FromUtf8Error>
|
3 |
#[allow(unused_variables, unused_braces, unused_parens)]
|
4 |
#[allow(clippy::identity_op)]
|
5 |
#[deny(unaligned_references)]
|
3720 |
#[allow(unused_variables, unused_braces, unused_parens)]
|
3721 |
#[allow(clippy::identity_op)]
|
3722 |
#[deny(unaligned_references)]
|
40 |
#[allow(clippy::identity_op)]
|
41 |
pub(crate) fn memory_fitness(self, properties: m::Properties) -> u32 {
|
193 |
// To keep the form of the reward formula, we spell out Carol's weight 1.
|
194 |
#[allow(clippy::identity_op)]
|
195 |
#[test]
|
185 |
#[test]
|
186 |
#[allow(clippy::identity_op)]
|
187 |
fn test_verify_padded_pieces() {
|
143 |
// Extract compressed length of base
|
144 |
#[allow(clippy::identity_op)]
|
145 |
let mut sector_compressed_len: u32 =
|
14 |
/// Set when the entry list is locked.
|
15 |
#[allow(clippy::identity_op)]
|
16 |
const LOCKED: usize = 1 << 0;
|
566 |
clippy::deref_addrof,
|
567 |
clippy::identity_op,
|
568 |
clippy::approx_constant,
|
80 |
clippy::undocumented_unsafe_blocks,
|
81 |
clippy::identity_op,
|
82 |
clippy::unnecessary_mut_passed,
|
1506 |
#[allow(clippy::identity_op)]
|
1507 |
fn set_16bits_value(&mut self, value: u16, at: usize) -> &mut Self {
|
1513 |
#[allow(clippy::identity_op)]
|
1514 |
fn get_16bits_value(&self, at: usize) -> u16 {
|
192 |
/// Double the width (usefull for chuncky conversions)
|
193 |
#[allow(clippy::needless_range_loop, clippy::identity_op)]
|
194 |
pub fn double_horizontally(&mut self) {
|
1057 |
/// Generate a multimode sprite that mixes mode 0 and mode 3 and uses only 4 colors
|
1058 |
#[allow(clippy::similar_names, clippy::identity_op)]
|
1059 |
pub fn mode0_mode3_mix_from_mode0(sprite: &Sprite, conversion: MultiModeConversion) -> Self {
|
133 |
/// Manage all the stuff related to mode 1 pixels
|
134 |
#[allow(clippy::identity_op)]
|
135 |
pub mod mode1 {
|
329 |
/// Mode 0 pixels specific operations
|
330 |
#[allow(clippy::identity_op)]
|
331 |
pub mod mode0 {
|
428 |
/// encoding is canonical.
|
429 |
#[allow(clippy::identity_op)]
|
430 |
pub fn as_bytes(&self) -> [u8; 32] {
|
128 |
#[rustfmt::skip] // keep alignment of s[*] calculations
|
129 |
#[allow(clippy::identity_op)]
|
130 |
pub fn as_bytes(&self) -> [u8; 32] {
|
118 |
#[rustfmt::skip] // keep alignment of s[*] calculations
|
119 |
#[allow(clippy::identity_op)]
|
120 |
pub fn as_bytes(&self) -> [u8; 32] {
|
1015 |
// Convert from radix 256 (bytes) to radix 16 (nibbles)
|
1016 |
#[allow(clippy::identity_op)]
|
1017 |
#[inline(always)]
|
482 |
// Signed int keys are "sign-flipped"
|
483 |
#[allow(clippy::identity_op)]
|
484 |
let one: Vec<u8> = vec![0 ^ 0x80, 0, 0, 0, 0, 0, 48, 57];
|
419 |
#[test]
|
420 |
#[allow(clippy::identity_op, clippy::op_ref)]
|
421 |
fn test_bit_ops_ubig_unsigned() {
|
477 |
#[test]
|
478 |
#[allow(clippy::identity_op, clippy::op_ref)]
|
479 |
fn test_bit_ops_ibig_primitive() {
|
3 |
#[test]
|
4 |
#[allow(clippy::identity_op, clippy::op_ref)]
|
5 |
fn test_ubig_shl() {
|
96 |
#[test]
|
97 |
#[allow(clippy::identity_op, clippy::op_ref)]
|
98 |
fn test_ubig_shr() {
|
272 |
#[test]
|
273 |
#[allow(clippy::identity_op)]
|
274 |
fn test_mul_usize() {
|
226 |
clippy::fn_to_numeric_cast_with_truncation,
|
227 |
clippy::identity_op,
|
228 |
clippy::erasing_op
|
191 |
/// ```
|
192 |
#[allow(clippy::identity_op)] // compiler cannot inference N + 1 = N
|
193 |
pub fn solve_eqn<const N: usize, Slice, Vector, F>(
|
22 |
#[allow(clippy::identity_op)]
|
23 |
const TX_WAKER_STORED: u8 = 1 << 0;
|
26 |
#[allow(clippy::identity_op)]
|
27 |
const TX_WAKER_STORED: usize = 1 << 0;
|
3 |
#[allow(clippy::identity_op)]
|
4 |
#[allow(clippy::erasing_op)]
|
537 |
#[inline]
|
538 |
#[allow(clippy::identity_op)]
|
539 |
pub(crate) fn scalar_inv(a: &[Limb; LIMB_LENGTH]) -> [Limb; LIMB_LENGTH] {
|
2510 |
#[allow(clippy::identity_op)]
|
2511 |
fn emit_record(&mut self, rec: Record) {
|
183 |
#[test]
|
184 |
#[allow(clippy::identity_op)]
|
185 |
fn test_verify_padded_pieces() {
|
745 |
for y in 0..h {
|
746 |
#[allow(clippy::identity_op)]
|
747 |
for x in 0..sub_stride {
|
949 |
#[test]
|
950 |
#[allow(clippy::identity_op, clippy::neg_multiply)]
|
951 |
fn delay_sum_computation() {
|
53 |
#[allow(unused_assignments, clippy::identity_op)]
|
54 |
fn init_with_signal(&mut self, signal: &[i32], offset: usize) {
|
311 |
) -> impl SerializeFn<W> + 'a {
|
312 |
#[allow(clippy::identity_op)]
|
313 |
let size = (((index << 1) | 0u32) << 1) | 1u32;
|
364 |
) -> impl SerializeFn<W> + 'a {
|
365 |
#[allow(clippy::identity_op)]
|
366 |
let size = (index << 1) | 0u32;
|
89 |
#[allow(clippy::identity_op)]
|
90 |
fn synth_callback_cb(state: &mut AudioState, output: &mut [f32]) {
|
793 |
#[allow(dead_code, clippy::identity_op)]
|
794 |
fn mix_resample_audio_both_2_channels_slow_reference(src: &[f32], dst: &mut [f32]) {
|
826 |
#[allow(dead_code,clippy::identity_op)]
|
827 |
fn mix_resample_audio_both_2_channels_iterator_version_vectorized(src: &[f32], dst: &mut [f32]) {
|
284 |
#[allow(clippy::identity_op)]
|
285 |
pub fn layer_lock(gl: &GlowGL, layer_id: i32, flags: ComponentFlags) {
|
298 |
#[allow(clippy::identity_op)]
|
299 |
pub fn layer_lock_always(gl: &GlowGL, layer_id: i32) {
|
599 |
///computes quads verticies and uv coordinates and writes then to the appropriate slices
|
600 |
#[allow(clippy::identity_op)]
|
601 |
fn set_glyph(vert: &mut [f32], uvs: &mut [f32], vb: AABB2<f32>, hb: AABB2<f32>, offset: usize) {
|
5 |
#[allow(clippy::erasing_op)]
|
6 |
#[allow(clippy::identity_op)]
|
7 |
fn padded_len_to_fit_word_len() {
|
61 |
#[allow(clippy::identity_op)] // https://github.com/rust-lang/rust-clippy/issues/3445
|
62 |
const IS_LOCKED: usize = 1 << 0;
|
301 |
#[test]
|
302 |
#[allow(clippy::identity_op)]
|
303 |
fn basic_gas_tracker() -> Result<()> {
|
251 |
#[test]
|
252 |
#[allow(clippy::identity_op)]
|
253 |
fn dot_test() {
|
257 |
#[test]
|
258 |
#[allow(clippy::identity_op)]
|
259 |
fn cross_test() {
|
105 |
#[cfg_attr(feature = "serde1", derive(Serialize, Deserialize))]
|
106 |
#[allow(clippy::identity_op)]
|
107 |
pub struct CIGARPair(u32);
|
40 |
#[allow(clippy::identity_op)]
|
41 |
pub(crate) fn memory_fitness(self, properties: m::Properties) -> u32 {
|
281 |
#[allow(clippy::identity_op)]
|
282 |
#[allow(clippy::erasing_op)]
|
207 |
#[allow(clippy::identity_op)]
|
208 |
#[allow(clippy::erasing_op)]
|
230 |
}
|
231 |
#[allow(clippy::identity_op)]
|
232 |
// A single '\n' left on the stack can be pushed onto the current line.
|
130 |
}
|
131 |
#[allow(clippy::identity_op)]
|
132 |
// A single '\n' left on the stack can be pushed onto the current line.
|
9 |
#[allow(clippy::identity_op)]
|
10 |
pub const SKIP_NONE: u8 = 1 << 0;
|
166 |
/// For 1 January 0000, this function returns 0.
|
167 |
#[allow(clippy::identity_op)]
|
168 |
pub const fn days_since_year_zero(self) -> i32 {
|
430 |
#[test]
|
431 |
#[allow(clippy::identity_op, clippy::neg_multiply)]
|
432 |
fn days_since_year_zero() {
|
465 |
#[test]
|
466 |
#[allow(clippy::identity_op, clippy::neg_multiply)]
|
467 |
fn from_days_since_year_zero() {
|
1645 |
#[allow(clippy::identity_op)]
|
1646 |
#[allow(clippy::bool_to_int_with_if)]
|
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() {
|
55 |
pub const fn to_bytes(self) -> [u8; 4] {
|
56 |
#[allow(clippy::identity_op)]
|
57 |
[
|
1181 |
#[allow(clippy::identity_op)]
|
1182 |
fn add(self, rhs: Unit) -> Self {
|
1187 |
impl AddAssign<Unit> for Duration {
|
1188 |
#[allow(clippy::identity_op)]
|
1189 |
fn add_assign(&mut self, rhs: Unit) {
|
1197 |
#[allow(clippy::identity_op)]
|
1198 |
fn sub(self, rhs: Unit) -> Duration {
|
1203 |
impl SubAssign<Unit> for Duration {
|
1204 |
#[allow(clippy::identity_op)]
|
1205 |
fn sub_assign(&mut self, rhs: Unit) {
|
1210 |
impl PartialEq<Unit> for Duration {
|
1211 |
#[allow(clippy::identity_op)]
|
1212 |
fn eq(&self, unit: &Unit) -> bool {
|
174 |
impl AddAssign<Unit> for Epoch {
|
175 |
#[allow(clippy::identity_op)]
|
176 |
fn add_assign(&mut self, unit: Unit) {
|
181 |
impl SubAssign<Unit> for Epoch {
|
182 |
#[allow(clippy::identity_op)]
|
183 |
fn sub_assign(&mut self, unit: Unit) {
|
191 |
#[allow(clippy::identity_op)]
|
192 |
fn sub(self, unit: Unit) -> Self {
|
200 |
#[allow(clippy::identity_op)]
|
201 |
fn add(self, unit: Unit) -> Self {
|
140 |
#[allow(clippy::identity_op)]
|
141 |
fn add(self, rhs: Self) -> Duration {
|
520 |
#[test]
|
521 |
#[allow(clippy::identity_op)]
|
522 |
fn test_add() {
|
536 |
#[test]
|
537 |
#[allow(clippy::identity_op)]
|
538 |
fn test_sub() {
|
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()))]
|
322 |
#[allow(clippy::identity_op)]
|
323 |
fn convert_term(
|
417 |
#[test]
|
418 |
#[allow(clippy::identity_op, clippy::op_ref)]
|
419 |
fn test_bit_ops_ubig_unsigned() {
|
480 |
#[test]
|
481 |
#[allow(clippy::identity_op, clippy::op_ref)]
|
482 |
fn test_bit_ops_ubig_signed() {
|
565 |
#[test]
|
566 |
#[allow(clippy::identity_op, clippy::op_ref)]
|
567 |
fn test_bit_ops_ibig_primitive() {
|
3 |
#[test]
|
4 |
#[allow(clippy::identity_op, clippy::op_ref)]
|
5 |
fn test_ubig_shl() {
|
83 |
#[test]
|
84 |
#[allow(clippy::identity_op, clippy::op_ref)]
|
85 |
fn test_ubig_shr() {
|
790 |
// ```
|
791 |
#[allow(clippy::identity_op)]
|
792 |
match image_level {
|
376 |
#[test]
|
377 |
#[allow(clippy::identity_op)]
|
378 |
#[allow(clippy::unusual_byte_groupings)]
|
261 |
#[test]
|
262 |
#[allow(clippy::identity_op)]
|
263 |
#[allow(clippy::unusual_byte_groupings)]
|
182 |
#[test]
|
183 |
#[allow(clippy::identity_op)]
|
184 |
fn test_read_to_vec() {
|
219 |
}
|
220 |
#[allow(clippy::identity_op)]
|
221 |
// A single '\n' left on the stack can be pushed onto the current line.
|
238 |
/// Allocate a pair on heap
|
239 |
#[allow(clippy::identity_op)]
|
240 |
fn cons(s: &mut State, x: &Expr, y: &Expr) -> ASM {
|
279 |
// Allows `R12 + 0`, its not ineffective
|
280 |
#[allow(clippy::identity_op)]
|
281 |
fn vector(s: &mut State, exprs: &[Expr]) -> ASM {
|
76 |
/// Allocate a string object in heap with a specific size
|
77 |
#[allow(clippy::identity_op)]
|
78 |
pub fn make(_: &State, size: i64) -> ASM {
|
244 |
#[allow(clippy::identity_op)]
|
245 |
const fn as_u32_be(array: &[u8; 4]) -> u32 {
|
113 |
#[allow(dead_code, clippy::identity_op, clippy::unnecessary_cast)]
|
114 |
mod bitfield {
|
63 |
// Isolating bitfield in a module so modular_bitfield lint disables don't pollute the entire file.
|
64 |
#[allow(dead_code, clippy::identity_op)]
|
65 |
mod bitfield {
|
776 |
}
|
777 |
#[allow(clippy::identity_op)]
|
778 |
"hhhh_hhhh" => Err(MalformedPacket::InvalidHeader(h)),
|
280 |
/// it.
|
281 |
#[allow(clippy::eq_op, clippy::identity_op)]
|
282 |
pub(crate) static CHARACTER_CLASS: [u8; 256] = [
|
103 |
#[allow(clippy::erasing_op)]
|
104 |
#[allow(clippy::identity_op)]
|
105 |
pub(crate) fn fdct(data: &mut [i16; 64]) {
|
100 |
#[allow(clippy::identity_op)]
|
101 |
const DAYS_BETWEEN_1900_01_01_AND_1970_01_01: u64 = 70 * 365 + (70 / 400) - (70 / 100) + (70 / 4);
|
32 |
pub fn to_annex_b_data(&self) -> Vec<u8> {
|
33 |
#[allow(clippy::identity_op)]
|
34 |
// forbidden_zero_bit = 0
|
1421 |
#[cfg(target_arch = "x86_64")]
|
1422 |
#[allow(clippy::unused_self, clippy::identity_op)]
|
1423 |
#[allow(clippy::too_many_lines)]
|
1563 |
// identity_op appears to be a false positive in ubfx
|
1564 |
#[allow(clippy::unused_self, clippy::identity_op, clippy::too_many_lines)]
|
1565 |
fn generate_shadow_check_function(&mut self) {
|
20 |
pub enum SdBusVtableFlag {
|
21 |
#[allow(clippy::identity_op)]
|
22 |
Deprecated = 1 << 0,
|
86 |
/// * `distance <= 16`
|
87 |
#[allow(clippy::identity_op)]
|
88 |
#[allow(dead_code)]
|
899 |
#[allow(clippy::identity_op)]
|
900 |
pub fn set_background_color(&mut self, color: u32) {
|
1015 |
#[allow(clippy::many_single_char_names, clippy::float_cmp, clippy::identity_op)]
|
1016 |
#[cfg(target_feature = "avx")]
|
32 |
impl Lcd {
|
33 |
#[allow(clippy::many_single_char_names, clippy::identity_op)]
|
34 |
pub fn push(&mut self, color: Color, y: u8) {
|
2369 |
#[rustfmt::skip]
|
2370 |
#[allow(clippy::eq_op, clippy::identity_op)]
|
2371 |
pub const OPCODE_POP_PUSH: [u8; 256] = [
|
1432 |
#[test]
|
1433 |
#[allow(clippy::identity_op)]
|
1434 |
fn test_cache_locate_headers() {
|
358 |
#[bench]
|
359 |
#[allow(clippy::identity_op)]
|
360 |
fn add_2d_cutouts_by_4(bench: &mut test::Bencher) {
|
371 |
#[bench]
|
372 |
#[allow(clippy::identity_op)]
|
373 |
fn add_2d_cutouts_by_16(bench: &mut test::Bencher) {
|
384 |
#[bench]
|
385 |
#[allow(clippy::identity_op)]
|
386 |
fn add_2d_cutouts_by_32(bench: &mut test::Bencher) {
|
65 |
#[bench]
|
66 |
#[allow(clippy::identity_op)]
|
67 |
fn chunk2x2_sum_get2(bench: &mut Bencher) {
|
176 |
#[allow(clippy::identity_op)]
|
177 |
match bytes.len() {
|
1064 |
}
|
1065 |
#[allow(clippy::identity_op)]
|
1066 |
const FIELD_COUNT: usize = 0 + 1 + 1 + 1;
|
1124 |
fn encoded_size_error_inner(list: &Error) -> usize {
|
1125 |
#[allow(clippy::identity_op)]
|
1126 |
let content_size = 0
|
1138 |
Descriptor::Ulong(29).encode(buf);
|
1139 |
#[allow(clippy::identity_op)]
|
1140 |
let content_size = 0
|
1290 |
}
|
1291 |
#[allow(clippy::identity_op)]
|
1292 |
const FIELD_COUNT: usize = 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1;
|
1443 |
fn encoded_size_open_inner(list: &Open) -> usize {
|
1444 |
#[allow(clippy::identity_op)]
|
1445 |
let content_size = 0
|
895 |
/// Return the position and velocity DCM (6x6) to go from the `from` frame to the `to` frame
|
896 |
#[allow(clippy::identity_op)]
|
897 |
pub fn try_dcm_from_to(
|
911 |
/// Return the position and velocity DCM (two 3x3 matrices) to go from the `from` frame to the `to` frame
|
912 |
#[allow(clippy::identity_op)]
|
913 |
pub fn try_dcm_from_to_in_parts(
|
142 |
/// Source for everything else: https://en.wikipedia.org/w/index.php?title=Day&oldid=1008298887
|
143 |
#[allow(clippy::identity_op)]
|
144 |
pub fn angular_velocity(&self) -> f64 {
|
51 |
/// Prints the polynomial with the least significant coefficients first
|
52 |
#[allow(clippy::identity_op)]
|
53 |
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
50 |
impl<'a> OdpScenario<'a> {
|
51 |
#[allow(clippy::identity_op)]
|
52 |
pub fn try_from_scenario(
|
167 |
impl EventEvaluator<Orbit> for Event {
|
168 |
#[allow(clippy::identity_op)]
|
169 |
fn epoch_precision(&self) -> Duration {
|
229 |
#[allow(clippy::identity_op)]
|
230 |
fn epoch_precision(&self) -> Duration {
|
253 |
/// Runs the targeter using finite differencing (for now).
|
254 |
#[allow(clippy::identity_op)]
|
255 |
pub fn try_achieve_from(
|
138 |
/// Find the exact state where the request event happens. The event function is expected to be monotone in the provided interval.
|
139 |
#[allow(clippy::identity_op)]
|
140 |
pub fn find_bracketed<E>(&self, start: Epoch, end: Epoch, event: &E) -> Result<S, NyxError>
|
251 |
/// such events will be found.
|
252 |
#[allow(clippy::identity_op)]
|
253 |
pub fn find_all<E>(&self, event: &E) -> Result<Vec<S>, NyxError>
|
88 |
// No-op subtraction for human comprehension, optimized out by the compiler
|
89 |
#[allow(clippy::identity_op)]
|
90 |
let start_granule_position_offset = first_audio_page_granule_position - 0;
|
179 |
#[rustfmt::skip]
|
180 |
#[allow(clippy::identity_op)]
|
181 |
/// Remaining processing after all data blocks have been processed.
|
7 |
#[allow(
|
8 |
clippy::identity_op,
|
9 |
clippy::too_many_arguments,
|
7 |
#[allow(
|
8 |
clippy::identity_op,
|
9 |
clippy::too_many_arguments,
|
367 |
#[test]
|
368 |
#[allow(clippy::identity_op)]
|
369 |
fn test_calculate_page_table_index_64() {
|
83 |
#[inline]
|
84 |
#[allow(trivial_numeric_casts, clippy::identity_op)]
|
85 |
#[cfg_attr(feature = "clippy", allow(used_underscore_binding))]
|
79 |
#[allow(clippy::identity_op)]
|
80 |
canvas.draw_text(
|
125 |
// allows for nice vertical formatting for `result[ix + 0]`
|
126 |
#[allow(clippy::identity_op)]
|
127 |
fn make_image_data(width: usize, height: usize) -> Vec<u8> {
|
45 |
// allows for nice vertical formatting for `result[ix + 0]`
|
46 |
#[allow(clippy::identity_op)]
|
47 |
match format {
|
213 |
// allows e.g. raw_data[dst_off + x * 4 + 2] = buf[src_off + x * 4 + 0];
|
214 |
#[allow(clippy::identity_op)]
|
215 |
fn make_image(
|
100 |
// allows for nice vertical formatting for `result[ix + 0]`
|
101 |
#[allow(clippy::identity_op)]
|
102 |
fn make_image_data(width: usize, height: usize) -> Vec<u8> {
|
42 |
// allows for nice vertical formatting for `result[ix + 0]`
|
43 |
#[allow(clippy::identity_op)]
|
44 |
match format {
|
444 |
#[allow(clippy::identity_op)] // to keep the code clean and consistent
|
445 |
fn parse_color<I: Iterator<Item = Token>>(c: &mut TokenProvider<I>) -> Result<Color> {
|
925 |
#[test]
|
926 |
#[allow(clippy::identity_op)]
|
927 |
fn poly_mul_real_number_value() {
|
162 |
#[allow(clippy::identity_op)]
|
163 |
const LO: i32 = (2 << 4) | 0;
|
201 |
#[allow(clippy::identity_op)]
|
202 |
const LO: i32 = (2 << 4) | 0;
|
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
|
677 |
// Three indices near which we are going to choose a pivot.
|
678 |
#[allow(clippy::identity_op)]
|
679 |
let mut a = len / 4 * 1;
|
68 |
/// (used with `select_bits`).
|
69 |
#[allow(clippy::identity_op)]
|
70 |
const INACTIVE_SHIFT: usize = 1 * THREADS_BITS;
|
153 |
#[allow(clippy::identity_op)]
|
154 |
pub unsafe fn flags_to_state(flags: u64) -> ModifierState {
|
9 |
#[allow(clippy::identity_op)]
|
10 |
pub const SKIP_NONE: u8 = 1 << 0;
|
719 |
#[allow(clippy::identity_op)]
|
720 |
unsafe {
|
565 |
#[test]
|
566 |
#[allow(clippy::identity_op)]
|
567 |
fn arrival_curve_prefix_number_arrivals() {
|
16 |
#[allow(clippy::identity_op, clippy::cast_possible_truncation)]
|
17 |
pub fn encode(mut output: impl BufMut, num: u32) -> usize {
|
157 |
pub type ErlNifSelectFlags = c_int;
|
158 |
#[allow(clippy::identity_op)]
|
159 |
pub const ERL_NIF_SELECT_READ: ErlNifSelectFlags = 1 << 0;
|
272 |
pub type ErlNifUniqueInteger = c_int;
|
273 |
#[allow(clippy::identity_op)]
|
274 |
pub const ERL_NIF_UNIQUE_POSITIVE: ErlNifUniqueInteger = 1 << 0;
|
275 |
#[allow(clippy::identity_op)]
|
276 |
pub const ERL_NIF_UNIQUE_MONOTONIC: ErlNifUniqueInteger = 1 << 1;
|
37 |
#[allow(clippy::identity_op)]
|
38 |
ContextSpecificConstructed0 = CONTEXT_SPECIFIC | CONSTRUCTED | 0,
|
372 |
use ring::io::der::{CONSTRUCTED, CONTEXT_SPECIFIC};
|
373 |
#[allow(clippy::identity_op)]
|
374 |
const OTHER_NAME_TAG: u8 = CONTEXT_SPECIFIC | CONSTRUCTED | 0;
|
271 |
// id-kp-serverAuth OBJECT IDENTIFIER ::= { id-kp 1 }
|
272 |
#[allow(clippy::identity_op)] // TODO: Make this clearer
|
273 |
pub(crate) static EKU_SERVER_AUTH: KeyPurposeId = KeyPurposeId {
|
277 |
// id-kp-clientAuth OBJECT IDENTIFIER ::= { id-kp 2 }
|
278 |
#[allow(clippy::identity_op)] // TODO: Make this clearer
|
279 |
pub(crate) static EKU_CLIENT_AUTH: KeyPurposeId = KeyPurposeId {
|
283 |
// id-kp-OCSPSigning OBJECT IDENTIFIER ::= { id-kp 9 }
|
284 |
#[allow(clippy::identity_op)] // TODO: Make this clearer
|
285 |
pub(crate) static EKU_OCSP_SIGNING: KeyPurposeId = KeyPurposeId {
|
104 |
#[inline]
|
105 |
#[allow(clippy::identity_op)]
|
106 |
fn as_u8_nibbles(opcode: u32) -> (u8, u8, u8, u8, u8) {
|
39 |
#[inline]
|
40 |
#[allow(clippy::identity_op)]
|
41 |
fn as_lower_3bit_values(opcode: u16) -> (usize, usize, usize, usize) {
|
663 |
}
|
664 |
#[allow(clippy::identity_op)]
|
665 |
fn decode_thumb_raw(opcode: u16) -> ThumbInstruction {
|
35 |
impl JSContext {
|
36 |
#[allow(clippy::identity_op)]
|
37 |
const JS_EVAL_TYPE_GLOBAL: i32 = (0 << 0);
|
1455 |
/// Gets the `raim_repair_flag` flag.
|
1456 |
#[allow(clippy::identity_op)]
|
1457 |
pub fn raim_repair_flag(&self) -> bool {
|
5983 |
/// Gets the `velocity_valid` flag.
|
5984 |
#[allow(clippy::identity_op)]
|
5985 |
pub fn velocity_valid(&self) -> bool {
|
5994 |
/// Gets the `attitude_valid` flag.
|
5995 |
#[allow(clippy::identity_op)]
|
5996 |
pub fn attitude_valid(&self) -> bool {
|
6005 |
/// Gets the `safe_state_hpl` flag.
|
6006 |
#[allow(clippy::identity_op)]
|
6007 |
pub fn safe_state_hpl(&self) -> bool {
|
6016 |
/// Gets the `safe_state_vpl` flag.
|
6017 |
#[allow(clippy::identity_op)]
|
6018 |
pub fn safe_state_vpl(&self) -> bool {
|
1585 |
/// Gets the `iff_multicast_supports_multicast` flag.
|
1586 |
#[allow(clippy::identity_op)]
|
1587 |
pub fn iff_multicast_supports_multicast(&self) -> bool {
|
1599 |
/// Gets the `iff_link2_per_link_layer_defined_bit` flag.
|
1600 |
#[allow(clippy::identity_op)]
|
1601 |
pub fn iff_link2_per_link_layer_defined_bit(&self) -> bool {
|
1613 |
/// Gets the `iff_link1_per_link_layer_defined_bit` flag.
|
1614 |
#[allow(clippy::identity_op)]
|
1615 |
pub fn iff_link1_per_link_layer_defined_bit(&self) -> bool {
|
1627 |
/// Gets the `iff_link0_per_link_layer_defined_bit` flag.
|
1628 |
#[allow(clippy::identity_op)]
|
1629 |
pub fn iff_link0_per_link_layer_defined_bit(&self) -> bool {
|
1641 |
/// Gets the `iff_simplex_cant_hear_own_transmissions` flag.
|
1642 |
#[allow(clippy::identity_op)]
|
1643 |
pub fn iff_simplex_cant_hear_own_transmissions(&self) -> bool {
|
29 |
#[allow(clippy::identity_op)]
|
30 |
pub const SD_JOURNAL_LOCAL_ONLY: c_int = 1 << 0;
|
19 |
fn default() -> Self {
|
20 |
#[allow(clippy::identity_op)] // Including the 1 makes it more clear that this is 1MiB
|
21 |
Self::with_capacity(1 * 1024 * 1024)
|
365 |
// original source: http://github.com/google/protobuf/blob/a7252bf42df8f0841cf3a0c85fdbf1a5172adecb/java/core/src/test/java/com/google/protobuf/CodedInputStreamTest.java#L239
|
366 |
#[allow(clippy::identity_op)]
|
367 |
fn expected_values() -> Vec<(Vec<u8>, u64)> {
|
227 |
#[allow(clippy::identity_op)]
|
228 |
#[test]
|
291 |
#[allow(clippy::identity_op)]
|
292 |
#[test]
|
321 |
#[allow(clippy::identity_op)]
|
322 |
#[test]
|
497 |
#[allow(clippy::identity_op)]
|
498 |
pub fn set_position(&mut self, x: &Vec3) {
|
509 |
#[allow(clippy::identity_op)]
|
510 |
pub fn set_rotation(&mut self, x: &Quat) {
|
614 |
#[allow(clippy::identity_op)]
|
615 |
pub fn set_position(&mut self, x: &Vec3) {
|
626 |
#[allow(clippy::identity_op)]
|
627 |
pub fn set_rotation(&mut self, x: &Quat) {
|
107 |
#[allow(clippy::identity_op)]
|
108 |
pub fn set_tip(&mut self, x: &Joint) {
|
119 |
#[allow(clippy::identity_op)]
|
120 |
pub fn set_distal(&mut self, x: &Joint) {
|
131 |
#[allow(clippy::identity_op)]
|
132 |
pub fn set_intermediate(&mut self, x: &Joint) {
|
143 |
#[allow(clippy::identity_op)]
|
144 |
pub fn set_proximal(&mut self, x: &Joint) {
|
155 |
#[allow(clippy::identity_op)]
|
156 |
pub fn set_metacarpal(&mut self, x: &Joint) {
|
127 |
#[allow(clippy::identity_op)]
|
128 |
fn on_start(&self, id: Id, o: &mut Out<Self>) -> Self::State {
|
135 |
#[allow(clippy::identity_op)]
|
136 |
fn on_start(&self, id: Id, o: &mut Out<Self>) -> Self::State {
|
4 |
#[allow(clippy::identity_op)]
|
12 |
/// Reduces sensitivity.
|
13 |
#[allow(clippy::identity_op)]
|
14 |
PowerSaving = (0x25 << 2) | 0b00,
|
2369 |
#[rustfmt::skip]
|
2370 |
#[allow(clippy::eq_op, clippy::identity_op)]
|
2371 |
pub const OPCODE_POP_PUSH: [u8; 256] = [
|
135 |
#[cfg(test)]
|
136 |
#[allow(clippy::identity_op)]
|
137 |
mod tests {
|
58 |
#[allow(clippy::identity_op)]
|
59 |
let flags: u8 = 0
|
113 |
};
|
114 |
#[allow(clippy::identity_op)]
|
115 |
let flags: u16 = 0
|
95 |
) -> io::Result<()> {
|
96 |
#[allow(clippy::identity_op)]
|
97 |
let flags: u16 = 0
|
204 |
#[allow(clippy::identity_op)]
|
205 |
let flags: u8 = 0
|
220 |
#[allow(clippy::identity_op)]
|
221 |
let flags: u8 = 0
|
249 |
#[allow(clippy::identity_op)]
|
250 |
let flags: u8 = 0
|
266 |
#[allow(clippy::identity_op)]
|
267 |
let flags: u8 = 0
|
29 |
assert!(value.colors.len() <= 0x0f);
|
30 |
#[allow(clippy::identity_op)]
|
31 |
let flags: u8 = 0
|
66 |
assert!(value.colors.len() <= 0x0f);
|
67 |
#[allow(clippy::identity_op)]
|
68 |
let flags: u8 = 0
|
138 |
#[allow(clippy::identity_op)]
|
139 |
let flags: u8 = 0
|
40 |
let (input, flags) = parse_u8(input)?;
|
41 |
#[allow(clippy::identity_op)]
|
42 |
let state_up = (flags & (1 << 0)) != 0;
|
119 |
let (input, flags) = parse_le_u16(input)?;
|
120 |
#[allow(clippy::identity_op)]
|
121 |
let idle_to_over_up = (flags & (1 << 0)) != 0;
|
81 |
#[allow(clippy::identity_op)]
|
82 |
Ok((
|
218 |
let (input, flags) = parse_u8(input)?;
|
219 |
#[allow(clippy::identity_op)]
|
220 |
let preserve_alpha = (flags & (1 << 0)) != 0;
|
450 |
let (input, flags) = parse_le_u16(input)?;
|
451 |
#[allow(clippy::identity_op)]
|
452 |
let pixel_hinting = (flags & (1 << 0)) != 0;
|
409 |
let (input, flags) = parse_le_u16(input)?;
|
410 |
#[allow(clippy::identity_op)]
|
411 |
let pixel_hinting = (flags & (1 << 0)) != 0;
|
38 |
let (input, flags) = parse_u8(input)?;
|
39 |
#[allow(clippy::identity_op)]
|
40 |
let has_in_point = (flags & (1 << 0)) != 0;
|
223 |
let (input, flags) = parse_u8(input)?;
|
224 |
#[allow(clippy::identity_op)]
|
225 |
let track_as_menu = (flags & (1 << 0)) != 0;
|
411 |
let (input, flags) = parse_le_u16(input)?;
|
412 |
#[allow(clippy::identity_op)]
|
413 |
let has_font = (flags & (1 << 0)) != 0;
|
541 |
let (input, flags) = parse_u8(input)?;
|
542 |
#[allow(clippy::identity_op)]
|
543 |
let is_bold = (flags & (1 << 0)) != 0;
|
1581 |
#[allow(clippy::identity_op)]
|
1582 |
fn collect_authenticated_bits(bits: &[BitShare]) -> (MacType, MacType, MacType) {
|
17 |
#[allow(clippy::identity_op)]
|
18 |
const LOCKED: usize = 1 << 0;
|
73 |
#[allow(clippy::identity_op)]
|
74 |
impl Display for Broadcast {
|
93 |
#[allow(clippy::identity_op)]
|
94 |
impl Display for MicroTari {
|
5 |
#[allow(clippy::identity_op)]
|
6 |
// Conv2D + BatchNorm2D + ReLU6
|
54 |
#[allow(clippy::identity_op)]
|
55 |
pub fn v2(p: &nn::Path, nclasses: i64) -> impl ModuleT {
|
426 |
/// encoding is canonical.
|
427 |
#[allow(clippy::identity_op)]
|
428 |
pub fn as_bytes(&self) -> [u8; 32] {
|
126 |
#[rustfmt::skip] // keep alignment of s[*] calculations
|
127 |
#[allow(clippy::identity_op)]
|
128 |
pub fn as_bytes(&self) -> [u8; 32] {
|
116 |
#[rustfmt::skip] // keep alignment of s[*] calculations
|
117 |
#[allow(clippy::identity_op)]
|
118 |
pub fn as_bytes(&self) -> [u8; 32] {
|
986 |
// Convert from radix 256 (bytes) to radix 16 (nibbles)
|
987 |
#[allow(clippy::identity_op)]
|
988 |
#[inline(always)]
|
255 |
/// ```
|
256 |
#[allow(clippy::identity_op)]
|
257 |
pub const fn dmg_inflate_row(low: u8, high: u8) -> [u8; 8] {
|
13 |
/// Set if a write lock is held.
|
14 |
#[allow(clippy::identity_op)]
|
15 |
const WRITE_LOCK: usize = 1 << 0;
|
15 |
/// Set when the entry list is locked.
|
16 |
#[allow(clippy::identity_op)]
|
17 |
const LOCKED: usize = 1 << 0;
|
282 |
#[allow(clippy::erasing_op)]
|
283 |
#[allow(clippy::identity_op)]
|
284 |
unsafe fn main_loop_2d_inner<T: Datum + Float + AddAssign>(
|
114 |
#[allow(clippy::identity_op)]
|
115 |
unsafe fn packed_packed_8x1(f: Option<&str>) {
|
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);
|
91 |
#[allow(clippy::identity_op)]
|
92 |
const SEARCHING_SHIFT: u32 = Self::STATE_BITS * 1;
|
162 |
{
|
163 |
#[allow(clippy::identity_op)]
|
164 |
let open_flags = 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]) {
|
114 |
#[allow(clippy::identity_op)]
|
115 |
fn mix_columns(block: &mut [u8; 16]) {
|
134 |
#[allow(clippy::identity_op)]
|
135 |
fn key_expansion(key: &[u8; 16]) -> [u8; 176] {
|
15 |
/// Set when the entry list is locked.
|
16 |
#[allow(clippy::identity_op)]
|
17 |
const LOCKED: usize = 1 << 0;
|
360 |
/// The offset of the `vmctx` field.
|
361 |
#[allow(clippy::identity_op)]
|
362 |
pub const fn vmfunction_import_vmctx(&self) -> u8 {
|
385 |
/// The offset of the `ctx` field.
|
386 |
#[allow(clippy::identity_op)]
|
387 |
pub const fn vmdynamicfunction_import_context_ctx(&self) -> u8 {
|
399 |
/// The size of the `current_elements` field.
|
400 |
#[allow(clippy::identity_op)]
|
401 |
pub const fn size_of_vmfunction_body_ptr(&self) -> u8 {
|
414 |
/// The offset of the `handle` field.
|
415 |
#[allow(clippy::identity_op)]
|
416 |
pub const fn vmtable_import_handle(&self) -> u8 {
|
434 |
/// The offset of the `current_elements` field.
|
435 |
#[allow(clippy::identity_op)]
|
436 |
pub const fn vmtable_definition_current_elements(&self) -> u8 {
|
128 |
/// The offset of the `vmctx` field.
|
129 |
#[allow(clippy::identity_op)]
|
130 |
pub const fn vmfunction_import_vmctx(&self) -> u8 {
|
152 |
/// The offset of the `ctx` field.
|
153 |
#[allow(clippy::identity_op)]
|
154 |
pub const fn vmdynamicfunction_import_context_ctx(&self) -> u8 {
|
168 |
/// The size of the `current_elements` field.
|
169 |
#[allow(clippy::identity_op)]
|
170 |
pub const fn size_of_vmfunction_body_ptr(&self) -> u8 {
|
185 |
/// The offset of the `from` field.
|
186 |
#[allow(clippy::identity_op)]
|
187 |
pub const fn vmtable_import_from(&self) -> u8 {
|
209 |
/// The offset of the `current_elements` field.
|
210 |
#[allow(clippy::identity_op)]
|
211 |
pub const fn vmtable_definition_current_elements(&self) -> u8 {
|
108 |
/// The offset of the `type_index` field.
|
109 |
#[allow(clippy::identity_op)]
|
110 |
#[inline]
|
178 |
/// The offset of the `current_length` field.
|
179 |
#[allow(clippy::identity_op)]
|
180 |
#[inline]
|
454 |
/// The offset of the `vmctx` field.
|
455 |
#[allow(clippy::identity_op)]
|
456 |
#[inline]
|
470 |
/// The size of the `current_elements` field.
|
471 |
#[allow(clippy::identity_op)]
|
472 |
pub fn size_of_vmfunction_body_ptr(&self) -> u8 {
|
486 |
/// The offset of the `vmctx` field.
|
487 |
#[allow(clippy::identity_op)]
|
488 |
#[inline]
|
1106 |
#[allow(clippy::erasing_op)]
|
1107 |
#[allow(clippy::identity_op)]
|
1108 |
fn test_fast_track_loop() {
|
300 |
use ring::io::der::{CONSTRUCTED, CONTEXT_SPECIFIC};
|
301 |
#[allow(clippy::identity_op)]
|
302 |
const OTHER_NAME_TAG: u8 = CONTEXT_SPECIFIC | CONSTRUCTED | 0;
|
263 |
// id-kp-serverAuth OBJECT IDENTIFIER ::= { id-kp 1 }
|
264 |
#[allow(clippy::identity_op)] // TODO: Make this clearer
|
265 |
pub static EKU_SERVER_AUTH: KeyPurposeId = KeyPurposeId {
|
269 |
// id-kp-clientAuth OBJECT IDENTIFIER ::= { id-kp 2 }
|
270 |
#[allow(clippy::identity_op)] // TODO: Make this clearer
|
271 |
pub static EKU_CLIENT_AUTH: KeyPurposeId = KeyPurposeId {
|
275 |
// id-kp-OCSPSigning OBJECT IDENTIFIER ::= { id-kp 9 }
|
276 |
#[allow(clippy::identity_op)] // TODO: Make this clearer
|
277 |
pub static EKU_OCSP_SIGNING: KeyPurposeId = KeyPurposeId {
|
1091 |
//SB x1,0(x2)
|
1092 |
#[allow(clippy::identity_op)]
|
1093 |
1 => (1 << 20) | (2 << 15) | (0x0 << 12) | 0x23,
|
1127 |
// not side-effect free.
|
1128 |
#[allow(clippy::identity_op)]
|
1129 |
self.write_instruction(
|
1214 |
self.write_register(bridge, &RiscvRegister::x1(), value)?;
|
1215 |
#[allow(clippy::identity_op)]
|
1216 |
self.write_instruction(
|
17 |
impl Sampling {
|
18 |
#[allow(clippy::identity_op)]
|
19 |
pub fn new() -> Self {
|
90 |
ptr::write_volatile(self.base.offset(MM2S_DMACR), 0x7001);
|
91 |
#[allow(clippy::identity_op)]
|
92 |
ptr::write_volatile(
|
115 |
ptr::write_volatile(self.base.offset(S2MM_DMACR), 0x7001);
|
116 |
#[allow(clippy::identity_op)]
|
117 |
ptr::write_volatile(
|
93 |
ptr::write_volatile(self.base.offset(MM2S_DMACR), 0x7001);
|
94 |
#[allow(clippy::identity_op)]
|
95 |
ptr::write_volatile(
|
120 |
ptr::write_volatile(self.base.offset(S2MM_DMACR), 0x7001);
|
121 |
#[allow(clippy::identity_op)]
|
122 |
ptr::write_volatile(
|
7 |
/// Calculate crc for a data and an initial crc value
|
8 |
#[allow(clippy::identity_op, clippy::zero_prefixed_literal)]
|
9 |
pub fn crc32(data: &[u8], mut crc: u32) -> u32
|
18 |
#![allow(clippy::identity_op)]
|
251 |
// This is necessary until modular_bitfield fixes all their identity_op warnings
|
252 |
#![allow(clippy::identity_op)]
|
1 |
//! Flag definitions
|
2 |
#![allow(clippy::identity_op)]
|
3 |
#![allow(unused_braces)]
|
2 |
#![feature(try_blocks)]
|
3 |
#![allow(clippy::identity_op)] //because clippy forbides 1 << 0 in c-like enums
|
4 |
#![allow(clippy::option_option)] //opt<opt<>> is required to properly handle nullables
|
9 |
#![allow(clippy::explicit_iter_loop)] // explicit loops are clearer
|
10 |
#![allow(clippy::identity_op)] // used for vertical alignment
|
11 |
#![allow(clippy::implicit_hasher)] // large project
|
9 |
// be explicit about certain offsets and how they are constructed
|
10 |
#![allow(clippy::identity_op)]
|
11 |
// in small cli projects, this is ok for now
|
2 |
#![allow(clippy::assign_op_pattern)]
|
3 |
#![allow(clippy::identity_op)]
|
65 |
clippy::erasing_op,
|
66 |
clippy::identity_op,
|
67 |
clippy::zero_prefixed_literal,
|
680 |
fn test_builder() -> Result<()> {
|
681 |
#![allow(clippy::identity_op)]
|
470 |
fn test_bytes_to_pages() {
|
471 |
#![allow(clippy::identity_op)]
|
487 |
fn test_pages_to_bytes() {
|
488 |
#![allow(clippy::identity_op)]
|
678 |
fn test_subsystem_apply() -> Result<()> {
|
679 |
#![allow(clippy::identity_op)]
|
884 |
fn test_subsystem_stat_throttled() -> Result<()> {
|
885 |
#![allow(clippy::identity_op)]
|
557 |
fn test_unified_repr_apply() -> Result<()> {
|
558 |
#![allow(clippy::identity_op)]
|
70 |
#![no_std]
|
71 |
#![allow(clippy::identity_op)]
|
72 |
#![allow(clippy::missing_safety_doc)]
|
29 |
clippy::module_inception,
|
30 |
clippy::identity_op
|
31 |
)]
|
14 |
#![allow(clippy::cast_possible_truncation)]
|
15 |
#![allow(clippy::identity_op)]
|
1 |
#![allow(unknown_lints)]
|
2 |
#![allow(clippy::identity_op)] // used for vertical alignment
|
15 |
many_single_char_names,
|
16 |
identity_op,
|
17 |
needless_borrow,
|
32 |
#![allow(clippy::wrong_self_convention)]
|
33 |
#![allow(clippy::identity_op)]
|
34 |
#![allow(clippy::many_single_char_names)]
|
1 |
#![allow(clippy::identity_op)] // For illustration purposes
|
2 |
// allows for nice formatting for e.g. new_buf[i * 4 + 0] = premul(buf[i * 4 + 0, a)
|
3 |
#![allow(clippy::identity_op)]
|
4 |
#![deny(clippy::trivially_copy_pass_by_ref)]
|
1 |
#![allow(clippy::identity_op)]
|
2 |
#[path = "./common.rs"]
|
1 |
#![allow(clippy::identity_op)]
|
2 |
#![allow(incomplete_features)]
|
14 |
clippy::unreadable_literal,
|
15 |
clippy::identity_op,
|
16 |
clippy::too_many_arguments,
|
102 |
clippy::suspicious_arithmetic_impl,
|
103 |
clippy::identity_op
|
104 |
)]
|
7 |
clippy::eq_op,
|
8 |
clippy::identity_op,
|
9 |
clippy::many_single_char_names,
|
104 |
fn color_slider_1d(ui: &mut Ui, value: &mut f32, color_at: impl Fn(f32) -> Color32) -> Response {
|
105 |
#![allow(clippy::identity_op)]
|
53 |
clippy::needless_range_loop,// the suggested iterator chains are less intuitive
|
54 |
clippy::identity_op,// applying a set of opereations with varying arguments to many elements looks nice
|
55 |
clippy::get_first,// .get(0), .get(1) is more readable
|
151 |
pub fn add_rect_with_uv(&mut self, rect: Rect, uv: Rect, color: Color32) {
|
152 |
#![allow(clippy::identity_op)]
|
6 |
#![allow(clippy::identity_op)]
|
1 |
#![allow(clippy::assertions_on_constants, clippy::eq_op, clippy::identity_op)]
|
296 |
pub mod cfg_prt_uart {
|
297 |
#![allow(clippy::identity_op)]
|
298 |
#![allow(unused_braces)]
|
1 |
#![cfg_attr(not(feature = "std"), no_std)]
|
2 |
#![allow(clippy::bool_assert_comparison, clippy::identity_op)]
|
1 |
#![allow(unknown_lints)]
|
2 |
#![allow(clippy::identity_op)] // used for vertical alignment
|
8 |
clippy::eq_op,
|
9 |
clippy::identity_op,
|
10 |
clippy::many_single_char_names,
|
8 |
clippy::eq_op,
|
9 |
clippy::identity_op,
|
10 |
clippy::many_single_char_names,
|
8 |
clippy::eq_op,
|
9 |
clippy::identity_op,
|
10 |
clippy::many_single_char_names,
|
1 |
#![allow(unreachable_code)]
|
2 |
#![allow(clippy::identity_op)]
|
1 |
#![allow(clippy::identity_op)]
|
2 |
#![allow(dead_code)]
|
14 |
#![allow(clippy::type_complexity)]
|
15 |
#![allow(clippy::identity_op)]
|
16 |
// Update in Cargo.toml as well.
|
18 |
#![allow(clippy::absurd_extreme_comparisons)]
|
19 |
#![allow(clippy::identity_op)]
|
20 |
#![allow(clippy::eq_op)]
|
18 |
#![allow(clippy::absurd_extreme_comparisons)]
|
19 |
#![allow(clippy::identity_op)]
|
20 |
#![allow(clippy::eq_op)]
|
2 |
#![allow(clippy::new_without_default)]
|
3 |
#![allow(clippy::identity_op)]
|
4 |
#![allow(clippy::module_inception)]
|
1 |
// TODO: REMOVE
|
2 |
#![allow(dead_code, clippy::identity_op)]
|
1 |
#![allow(clippy::unreadable_literal,clippy::identity_op)]
|
9 |
#![allow(clippy::erasing_op)]
|
10 |
#![allow(clippy::identity_op)]
|
11 |
use crate::parser::Dimensions;
|
1 |
#![allow(clippy::identity_op)]
|
88 |
#![allow(clippy::style)]
|
89 |
#![allow(clippy::identity_op)]
|
3 |
#![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)]
|
9 |
// We have a couple of expressions with +0 for clarity of where the 0 comes from
|
10 |
#![allow(clippy::identity_op)]
|
4 |
clippy::cast_ptr_alignment,
|
5 |
clippy::identity_op,
|
6 |
clippy::many_single_char_names,
|
23 |
// for readability
|
24 |
#![allow(clippy::identity_op)]
|
1 |
#![allow(clippy::identity_op)]
|
2 |
use wgpu::{
|
1 |
#![allow(clippy::identity_op)] // FIXME https://github.com/Robbepop/modular-bitfield/issues/62
|
165 |
clippy::type_complexity,
|
166 |
clippy::identity_op,
|
167 |
clippy::wrong_self_convention,
|
1 |
#![allow(non_camel_case_types, clippy::identity_op)]
|
2 |
/** Minimal xkb_common ffi wrapper, based on sctk's. */
|
8 |
clippy::suspicious_arithmetic_impl,
|
9 |
clippy::identity_op
|
10 |
)]
|
7 |
clippy::eq_op,
|
8 |
clippy::identity_op,
|
9 |
clippy::many_single_char_names,
|
7 |
clippy::eq_op,
|
8 |
clippy::identity_op,
|
9 |
clippy::many_single_char_names,
|
1 |
#![allow(clippy::identity_op)]
|
1 |
#![allow(clippy::identity_op)]
|
2 |
#![allow(clippy::new_without_default)]
|
3 |
#![allow(clippy::identity_op)]
|
4 |
#![allow(clippy::module_inception)]
|
1 |
#![allow(clippy::identity_op)]
|
4 |
unused_variables,
|
5 |
clippy::identity_op,
|
6 |
clippy::derivable_impls,
|
4 |
unused_variables,
|
5 |
clippy::identity_op,
|
6 |
clippy::derivable_impls,
|
8 |
#![allow(clippy::identity_op)]
|
142 |
) -> Response {
|
143 |
#![allow(clippy::identity_op)]
|
213 |
) -> Response {
|
214 |
#![allow(clippy::identity_op)]
|
4 |
clippy::unreadable_literal,
|
5 |
clippy::identity_op,
|
6 |
unused,
|
2 |
clippy::erasing_op,
|
3 |
clippy::identity_op,
|
4 |
clippy::suspicious_op_assign_impl,
|
2 |
clippy::erasing_op,
|
3 |
clippy::identity_op,
|
4 |
clippy::suspicious_op_assign_impl,
|
2 |
clippy::erasing_op,
|
3 |
clippy::identity_op,
|
4 |
clippy::suspicious_op_assign_impl,
|
19 |
clippy::too_many_arguments,
|
20 |
clippy::identity_op
|
21 |
)]
|
19 |
clippy::too_many_arguments,
|
20 |
clippy::identity_op
|
21 |
)]
|
47 |
#![allow(clippy::identity_op)]
|
13 |
#![allow(dead_code)]
|
14 |
#![allow(clippy::identity_op)]
|
1 |
// allows e.g. raw_data[dst_off + x * 4 + 2] = buf[src_off + x * 4 + 0];
|
2 |
#![allow(clippy::identity_op)]
|
1 |
// allows e.g. raw_data[dst_off + x * 4 + 2] = buf[src_off + x * 4 + 0];
|
2 |
#![allow(clippy::identity_op)]
|
2 |
// allows for nice formatting for e.g. new_buf[i * 4 + 0] = premul(buf[i * 4 + 0, a)
|
3 |
#![allow(clippy::identity_op)]
|
4 |
#![deny(clippy::trivially_copy_pass_by_ref)]
|
1 |
// allows e.g. raw_data[dst_off + x * 4 + 2] = buf[src_off + x * 4 + 0];
|
2 |
#![allow(clippy::identity_op)]
|
3 |
#![deny(clippy::trivially_copy_pass_by_ref)]
|
5 |
#![allow(nonstandard_style, clippy::identity_op)]
|
5 |
#![allow(clippy::identity_op)]
|
9 |
clippy::unused_unit,
|
10 |
clippy::identity_op
|
11 |
)]
|
9 |
clippy::unused_unit,
|
10 |
clippy::identity_op
|
11 |
)]
|
1 |
#![allow(clippy::identity_op)]
|
10 |
#![allow(clippy::many_single_char_names)]
|
11 |
#![allow(clippy::identity_op)]
|
12 |
// Disable a lint that cannot be fixed without increasing the MSRV
|
11 |
#![allow(clippy::too_many_arguments)]
|
12 |
#![allow(clippy::identity_op)]
|
13 |
#![allow(clippy::upper_case_acronyms)]
|
1 |
#![allow(clippy::identity_op)]
|
1 |
#![allow(clippy::identity_op)]
|
2 |
clippy::derive_partial_eq_without_eq,
|
3 |
clippy::identity_op,
|
4 |
clippy::shadow_unrelated
|
36 |
#![allow(unknown_lints)]
|
37 |
#![allow(clippy::identity_op)]
|
38 |
#![allow(clippy::unreadable_literal)]
|
37 |
#![allow(clippy::double_parens)]
|
38 |
#![allow(clippy::identity_op)]
|
1 |
#![allow(dead_code, non_camel_case_types, clippy::identity_op)]
|
92 |
#![allow(clippy::redundant_field_names)]
|
93 |
#![allow(clippy::identity_op)]
|
94 |
#![allow(clippy::option_map_unit_fn)]
|
5 |
#![allow(
|
6 |
clippy::identity_op,
|
7 |
clippy::let_and_return,
|
14 |
#![allow(
|
15 |
clippy::identity_op,
|
16 |
clippy::let_and_return,
|
4 |
#![deny(missing_docs)]
|
5 |
#![allow(clippy::identity_op)]
|
11 |
#![allow(clippy::too_many_arguments)]
|
12 |
#![allow(clippy::identity_op)]
|
13 |
#![allow(clippy::upper_case_acronyms)]
|
13 |
#![allow(clippy::excessive_precision)]
|
14 |
#![allow(clippy::identity_op)]
|
15 |
#![allow(clippy::manual_range_contains)]
|
13 |
#![allow(clippy::excessive_precision)]
|
14 |
#![allow(clippy::identity_op)]
|
15 |
#![allow(clippy::manual_range_contains)]
|
13 |
#![allow(clippy::excessive_precision)]
|
14 |
#![allow(clippy::identity_op)]
|
15 |
#![allow(clippy::manual_range_contains)]
|
13 |
#![allow(clippy::excessive_precision)]
|
14 |
#![allow(clippy::identity_op)]
|
15 |
#![allow(clippy::manual_range_contains)]
|
13 |
#![allow(clippy::excessive_precision)]
|
14 |
#![allow(clippy::identity_op)]
|
15 |
#![allow(clippy::manual_range_contains)]
|
13 |
#![allow(clippy::excessive_precision)]
|
14 |
#![allow(clippy::identity_op)]
|
15 |
#![allow(clippy::manual_range_contains)]
|
13 |
#![allow(clippy::excessive_precision)]
|
14 |
#![allow(clippy::identity_op)]
|
15 |
#![allow(clippy::manual_range_contains)]
|
11 |
#![allow(clippy::excessive_precision)]
|
12 |
#![allow(clippy::identity_op)]
|
13 |
#![allow(clippy::manual_range_contains)]
|
12 |
#![allow(clippy::excessive_precision)]
|
13 |
#![allow(clippy::identity_op)]
|
14 |
#![allow(clippy::manual_range_contains)]
|
13 |
#![allow(clippy::excessive_precision)]
|
14 |
#![allow(clippy::identity_op)]
|
15 |
#![allow(clippy::manual_range_contains)]
|
13 |
#![allow(clippy::excessive_precision)]
|
14 |
#![allow(clippy::identity_op)]
|
15 |
#![allow(clippy::manual_range_contains)]
|
13 |
#![allow(clippy::excessive_precision)]
|
14 |
#![allow(clippy::identity_op)]
|
15 |
#![allow(clippy::manual_range_contains)]
|
13 |
#![allow(clippy::excessive_precision)]
|
14 |
#![allow(clippy::identity_op)]
|
15 |
#![allow(clippy::manual_range_contains)]
|
11 |
#![allow(clippy::excessive_precision)]
|
12 |
#![allow(clippy::identity_op)]
|
13 |
#![allow(clippy::manual_range_contains)]
|
143 |
clippy::type_complexity,
|
144 |
clippy::identity_op,
|
145 |
clippy::wrong_self_convention,
|
6 |
#![allow(clippy::identity_op)] // I like to `<< 0`, `+ 0`, etc. for consistency
|
7 |
#![allow(clippy::missing_safety_doc)] // I prefer ⚠️ Safety ⚠️ docs
|
3 |
#![allow(clippy::double_parens)]
|
4 |
#![allow(clippy::identity_op)]
|
731 |
// allow the identity operation for clarity
|
732 |
#![allow(clippy::identity_op)]
|
733 |
use std::time::Duration;
|
22 |
#![allow(clippy::excessive_precision)]
|
23 |
#![allow(clippy::identity_op)]
|
24 |
#![allow(clippy::manual_range_contains)]
|
22 |
#![allow(clippy::excessive_precision)]
|
23 |
#![allow(clippy::identity_op)]
|
24 |
#![allow(clippy::manual_range_contains)]
|
832 |
fn next_tag(&mut self) -> &[u8; 20] {
|
833 |
#![allow(clippy::identity_op)]
|
834 |
self.counter_tag[0] = ((self.counter >> 0) & 255) as u8;
|
41 |
#![allow(clippy::get_first)] // we use it for readability
|
42 |
#![allow(clippy::identity_op)] // we use it for readability
|
43 |
#![allow(clippy::too_many_arguments)]
|
1 |
#![allow(non_snake_case)]
|
2 |
#![allow(clippy::identity_op)]
|
57 |
#![allow(clippy::neg_cmp_op_on_partial_ord)]
|
58 |
#![allow(clippy::identity_op)]
|
59 |
#![allow(clippy::question_mark)]
|
19 |
#![allow(clippy::neg_cmp_op_on_partial_ord)]
|
20 |
#![allow(clippy::identity_op)]
|
21 |
#![allow(clippy::question_mark)]
|
57 |
#![allow(clippy::neg_cmp_op_on_partial_ord)]
|
58 |
#![allow(clippy::identity_op)]
|
59 |
#![allow(clippy::question_mark)]
|
19 |
#![allow(clippy::neg_cmp_op_on_partial_ord)]
|
20 |
#![allow(clippy::identity_op)]
|
21 |
#![allow(clippy::question_mark)]
|
49 |
clippy::manual_map,
|
50 |
clippy::identity_op,
|
51 |
clippy::module_inception,
|
43 |
#![deny(unused_must_use, missing_docs)]
|
44 |
#![allow(clippy::identity_op)]
|
45 |
#![allow(dead_code)]
|
9 |
#![allow(clippy::explicit_iter_loop)] // explicit loops are clearer
|
10 |
#![allow(clippy::identity_op)] // used for vertical alignment
|
11 |
#![allow(clippy::implicit_hasher)] // large project
|
1 |
#![allow(non_camel_case_types, clippy::identity_op)]
|
1 |
#![allow(non_camel_case_types, clippy::identity_op)]
|
1 |
#![deny(unused_mut)]
|
2 |
#![allow(non_camel_case_types, clippy::identity_op)]
|
1 |
#![allow(clippy::identity_op)]
|
1 |
#![allow(clippy::identity_op)]
|
2 |
#![allow(unused)]
|
3 |
#![cfg_attr(feature="cargo-clippy",allow(needless_pass_by_value,cast_lossless,identity_op))]
|
4 |
use futures::future::{err, ok, Future};
|
1 |
#![cfg_attr(feature="cargo-clippy",allow(needless_pass_by_value,cast_lossless,identity_op))]
|
2 |
use futures::future::{err, ok, Future};
|
93 |
// For readability.
|
94 |
#![allow(clippy::identity_op)]
|
108 |
// For readability.
|
109 |
#![allow(clippy::identity_op)]
|
1 |
#![allow(clippy::identity_op)]
|
2 |
#![cfg(test)]
|
14 |
#![cfg_attr(feature = "benchmarks", feature(test))]
|
15 |
#![allow(clippy::identity_op, clippy::new_without_default, clippy::trivially_copy_pass_by_ref)]
|
4 |
#![allow(clippy::identity_op)]
|
4 |
#![allow(clippy::identity_op)]
|
92 |
#![allow(clippy::redundant_field_names)]
|
93 |
#![allow(clippy::identity_op)]
|
94 |
#![allow(clippy::option_map_unit_fn)]
|