Codebase list rust-stfu8 / 1e8d99e src / packed-simd / debian / patches / fix-clippy-issues.diff
1e8d99e

Tree @1e8d99e (Download .tar.gz)

fix-clippy-issues.diff @1e8d99eraw · history · blame

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
This patch is based on the upstream commit described below, with changes
to files not present in the Debian package removed.

commit acd3aef63607d8c1b256943f9f53e7bfb7680352
Author: gnzlbg <gonzalobg88@gmail.com>
Date:   Thu Feb 7 13:47:26 2019 +0100

    Fix clippy issues

diff --git a/src/api/cast.rs b/src/api/cast.rs
index 70ce4615a..f1c32ca1a 100644
--- a/src/api/cast.rs
+++ b/src/api/cast.rs
@@ -1,11 +1,5 @@
 //! Implementation of `FromCast` and `IntoCast`.
-#![cfg_attr(
-    feature = "cargo-clippy",
-    allow(
-        clippy::module_name_repetitions,
-        clippy::stutter
-    )
-)]
+#![allow(clippy::module_name_repetitions)]
 
 /// Numeric cast from `T` to `Self`.
 ///
diff --git a/src/api/cmp/partial_eq.rs b/src/api/cmp/partial_eq.rs
index 7e2782f0f..1712a0de5 100644
--- a/src/api/cmp/partial_eq.rs
+++ b/src/api/cmp/partial_eq.rs
@@ -7,7 +7,7 @@ macro_rules! impl_cmp_partial_eq {
         ($true:expr, $false:expr)
     ) => {
         // FIXME: https://github.com/rust-lang-nursery/rust-clippy/issues/2892
-        #[cfg_attr(feature = "cargo-clippy", allow(clippy::partialeq_ne_impl))]
+        #[allow(clippy::partialeq_ne_impl)]
         impl crate::cmp::PartialEq<$id> for $id {
             #[inline]
             fn eq(&self, other: &Self) -> bool {
@@ -20,7 +20,7 @@ macro_rules! impl_cmp_partial_eq {
         }
 
         // FIXME: https://github.com/rust-lang-nursery/rust-clippy/issues/2892
-        #[cfg_attr(feature = "cargo-clippy", allow(clippy::partialeq_ne_impl))]
+        #[allow(clippy::partialeq_ne_impl)]
         impl crate::cmp::PartialEq<LexicographicallyOrdered<$id>>
             for LexicographicallyOrdered<$id>
         {
@@ -34,12 +34,13 @@ macro_rules! impl_cmp_partial_eq {
             }
         }
 
-        test_if!{
+        test_if! {
             $test_tt:
             paste::item! {
                 pub mod [<$id _cmp_PartialEq>] {
                     use super::*;
-                    #[cfg_attr(not(target_arch = "wasm32"), test)] #[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)]
+                    #[cfg_attr(not(target_arch = "wasm32"), test)]
+                    #[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)]
                     fn partial_eq() {
                         let a = $id::splat($false);
                         let b = $id::splat($true);
diff --git a/src/api/fmt/binary.rs b/src/api/fmt/binary.rs
index c758dadcc..b60769082 100644
--- a/src/api/fmt/binary.rs
+++ b/src/api/fmt/binary.rs
@@ -3,11 +3,10 @@
 macro_rules! impl_fmt_binary {
     ([$elem_ty:ident; $elem_count:expr]: $id:ident | $test_tt:tt) => {
         impl crate::fmt::Binary for $id {
-            #[cfg_attr(
-                feature = "cargo-clippy", allow(clippy::missing_inline_in_public_items)
-            )]
-            fn fmt(&self, f: &mut crate::fmt::Formatter<'_>)
-                   -> crate::fmt::Result {
+            #[allow(clippy::missing_inline_in_public_items)]
+            fn fmt(
+                &self, f: &mut crate::fmt::Formatter<'_>,
+            ) -> crate::fmt::Result {
                 write!(f, "{}(", stringify!($id))?;
                 for i in 0..$elem_count {
                     if i > 0 {
@@ -18,12 +17,13 @@ macro_rules! impl_fmt_binary {
                 write!(f, ")")
             }
         }
-        test_if!{
+        test_if! {
             $test_tt:
             paste::item! {
                 pub mod [<$id _fmt_binary>] {
                     use super::*;
-                    #[cfg_attr(not(target_arch = "wasm32"), test)] #[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)]
+                    #[cfg_attr(not(target_arch = "wasm32"), test)]
+                    #[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)]
                     fn binary() {
                         use arrayvec::{ArrayString,ArrayVec};
                         type TinyString = ArrayString<[u8; 512]>;
diff --git a/src/api/fmt/debug.rs b/src/api/fmt/debug.rs
index f34a237d9..ad0b8a59a 100644
--- a/src/api/fmt/debug.rs
+++ b/src/api/fmt/debug.rs
@@ -2,12 +2,13 @@
 
 macro_rules! impl_fmt_debug_tests {
     ([$elem_ty:ty; $elem_count:expr]: $id:ident | $test_tt:tt) => {
-        test_if!{
+        test_if! {
             $test_tt:
             paste::item! {
                 pub mod [<$id _fmt_debug>] {
                     use super::*;
-                    #[cfg_attr(not(target_arch = "wasm32"), test)] #[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)]
+                    #[cfg_attr(not(target_arch = "wasm32"), test)]
+                    #[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)]
                     fn debug() {
                         use arrayvec::{ArrayString,ArrayVec};
                         type TinyString = ArrayString<[u8; 512]>;
@@ -42,10 +43,7 @@ macro_rules! impl_fmt_debug_tests {
 macro_rules! impl_fmt_debug {
     ([$elem_ty:ty; $elem_count:expr]: $id:ident | $test_tt:tt) => {
         impl crate::fmt::Debug for $id {
-            #[cfg_attr(
-                feature = "cargo-clippy",
-                allow(clippy::missing_inline_in_public_items)
-            )]
+            #[allow(clippy::missing_inline_in_public_items)]
             fn fmt(
                 &self, f: &mut crate::fmt::Formatter<'_>,
             ) -> crate::fmt::Result {
diff --git a/src/api/fmt/lower_hex.rs b/src/api/fmt/lower_hex.rs
index ac6ea9593..5a7aa14b5 100644
--- a/src/api/fmt/lower_hex.rs
+++ b/src/api/fmt/lower_hex.rs
@@ -3,11 +3,10 @@
 macro_rules! impl_fmt_lower_hex {
     ([$elem_ty:ident; $elem_count:expr]: $id:ident | $test_tt:tt) => {
         impl crate::fmt::LowerHex for $id {
-            #[cfg_attr(
-                feature = "cargo-clippy", allow(clippy::missing_inline_in_public_items)
-            )]
-            fn fmt(&self, f: &mut crate::fmt::Formatter<'_>)
-                   -> crate::fmt::Result {
+            #[allow(clippy::missing_inline_in_public_items)]
+            fn fmt(
+                &self, f: &mut crate::fmt::Formatter<'_>,
+            ) -> crate::fmt::Result {
                 write!(f, "{}(", stringify!($id))?;
                 for i in 0..$elem_count {
                     if i > 0 {
@@ -18,12 +17,13 @@ macro_rules! impl_fmt_lower_hex {
                 write!(f, ")")
             }
         }
-        test_if!{
+        test_if! {
             $test_tt:
             paste::item! {
                 pub mod [<$id _fmt_lower_hex>] {
                     use super::*;
-                    #[cfg_attr(not(target_arch = "wasm32"), test)] #[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)]
+                    #[cfg_attr(not(target_arch = "wasm32"), test)]
+                    #[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)]
                     fn lower_hex() {
                         use arrayvec::{ArrayString,ArrayVec};
                         type TinyString = ArrayString<[u8; 512]>;
diff --git a/src/api/fmt/octal.rs b/src/api/fmt/octal.rs
index ff78a332b..83ac8abc7 100644
--- a/src/api/fmt/octal.rs
+++ b/src/api/fmt/octal.rs
@@ -3,11 +3,10 @@
 macro_rules! impl_fmt_octal {
     ([$elem_ty:ident; $elem_count:expr]: $id:ident | $test_tt:tt) => {
         impl crate::fmt::Octal for $id {
-            #[cfg_attr(
-                feature = "cargo-clippy", allow(clippy::missing_inline_in_public_items)
-            )]
-            fn fmt(&self, f: &mut crate::fmt::Formatter<'_>)
-                   -> crate::fmt::Result {
+            #[allow(clippy::missing_inline_in_public_items)]
+            fn fmt(
+                &self, f: &mut crate::fmt::Formatter<'_>,
+            ) -> crate::fmt::Result {
                 write!(f, "{}(", stringify!($id))?;
                 for i in 0..$elem_count {
                     if i > 0 {
@@ -18,12 +17,13 @@ macro_rules! impl_fmt_octal {
                 write!(f, ")")
             }
         }
-        test_if!{
+        test_if! {
             $test_tt:
             paste::item! {
                 pub mod [<$id _fmt_octal>] {
                     use super::*;
-                    #[cfg_attr(not(target_arch = "wasm32"), test)] #[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)]
+                    #[cfg_attr(not(target_arch = "wasm32"), test)]
+                    #[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)]
                     fn octal_hex() {
                         use arrayvec::{ArrayString,ArrayVec};
                         type TinyString = ArrayString<[u8; 512]>;
diff --git a/src/api/fmt/upper_hex.rs b/src/api/fmt/upper_hex.rs
index ab60c7e22..aa88f673a 100644
--- a/src/api/fmt/upper_hex.rs
+++ b/src/api/fmt/upper_hex.rs
@@ -3,11 +3,10 @@
 macro_rules! impl_fmt_upper_hex {
     ([$elem_ty:ident; $elem_count:expr]: $id:ident | $test_tt:tt) => {
         impl crate::fmt::UpperHex for $id {
-            #[cfg_attr(
-                feature = "cargo-clippy", allow(clippy::missing_inline_in_public_items)
-            )]
-            fn fmt(&self, f: &mut crate::fmt::Formatter<'_>)
-                   -> crate::fmt::Result {
+            #[allow(clippy::missing_inline_in_public_items)]
+            fn fmt(
+                &self, f: &mut crate::fmt::Formatter<'_>,
+            ) -> crate::fmt::Result {
                 write!(f, "{}(", stringify!($id))?;
                 for i in 0..$elem_count {
                     if i > 0 {
@@ -18,12 +17,13 @@ macro_rules! impl_fmt_upper_hex {
                 write!(f, ")")
             }
         }
-        test_if!{
+        test_if! {
             $test_tt:
             paste::item! {
                 pub mod [<$id _fmt_upper_hex>] {
                     use super::*;
-                    #[cfg_attr(not(target_arch = "wasm32"), test)] #[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)]
+                    #[cfg_attr(not(target_arch = "wasm32"), test)]
+                    #[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)]
                     fn upper_hex() {
                         use arrayvec::{ArrayString,ArrayVec};
                         type TinyString = ArrayString<[u8; 512]>;
diff --git a/src/api/minimal/iuf.rs b/src/api/minimal/iuf.rs
index ed85cf769..58ffabab9 100644
--- a/src/api/minimal/iuf.rs
+++ b/src/api/minimal/iuf.rs
@@ -18,8 +18,7 @@ macro_rules! impl_minimal_iuf {
             /// Creates a new instance with each vector elements initialized
             /// with the provided values.
             #[inline]
-            #[cfg_attr(feature = "cargo-clippy",
-                       allow(clippy::too_many_arguments))]
+            #[allow(clippy::too_many_arguments)]
             pub const fn new($($elem_name: $elem_ty),*) -> Self {
                 Simd(codegen::$id($($elem_name as $ielem_ty),*))
             }
diff --git a/src/api/minimal/mask.rs b/src/api/minimal/mask.rs
index 18ca5b24f..e65be95db 100644
--- a/src/api/minimal/mask.rs
+++ b/src/api/minimal/mask.rs
@@ -16,16 +16,14 @@ macro_rules! impl_minimal_mask {
             /// Creates a new instance with each vector elements initialized
             /// with the provided values.
             #[inline]
-            #[cfg_attr(feature = "cargo-clippy",
-                       allow(clippy::too_many_arguments))]
+            #[allow(clippy::too_many_arguments)]
             pub const fn new($($elem_name: bool),*) -> Self {
                 Simd(codegen::$id($(Self::bool_to_internal($elem_name)),*))
             }
 
             /// Converts a boolean type into the type of the vector lanes.
             #[inline]
-            #[cfg_attr(feature = "cargo-clippy",
-                       allow(clippy::indexing_slicing))]
+            #[allow(clippy::indexing_slicing)]
             const fn bool_to_internal(x: bool) -> $ielem_ty {
                 [0 as $ielem_ty, !(0 as $ielem_ty)][x as usize]
             }
diff --git a/src/api/minimal/ptr.rs b/src/api/minimal/ptr.rs
index 38b8a73c9..75e5aad5c 100644
--- a/src/api/minimal/ptr.rs
+++ b/src/api/minimal/ptr.rs
@@ -19,8 +19,7 @@ macro_rules! impl_minimal_p {
             /// Creates a new instance with each vector elements initialized
             /// with the provided values.
             #[inline]
-            #[cfg_attr(feature = "cargo-clippy",
-                       allow(clippy::too_many_arguments))]
+            #[allow(clippy::too_many_arguments)]
             pub const fn new($($elem_name: $elem_ty),*) -> Self {
                 Simd(codegen::$id($($elem_name),*))
             }
@@ -89,8 +88,7 @@ macro_rules! impl_minimal_p {
                           it returns a new vector with the value at `index` \
                           replaced by `new_value`d"
             ]
-            #[cfg_attr(feature = "cargo-clippy",
-                       allow(clippy::not_unsafe_ptr_arg_deref))]
+            #[allow(clippy::not_unsafe_ptr_arg_deref)]
             pub fn replace(self, index: usize, new_value: $elem_ty) -> Self {
                 assert!(index < $elem_count);
                 unsafe { self.replace_unchecked(index, new_value) }
@@ -210,8 +208,7 @@ macro_rules! impl_minimal_p {
         }
 
         impl<T> crate::fmt::Debug for $id<T> {
-            #[cfg_attr(feature = "cargo-clippy",
-                       allow(clippy::missing_inline_in_public_items))]
+            #[allow(clippy::missing_inline_in_public_items)]
             fn fmt(&self, f: &mut crate::fmt::Formatter<'_>)
                    -> crate::fmt::Result {
                 write!(
@@ -424,7 +421,7 @@ macro_rules! impl_minimal_p {
             }
         }
 
-        #[cfg_attr(feature = "cargo-clippy", allow(clippy::partialeq_ne_impl))]
+        #[allow(clippy::partialeq_ne_impl)]
         impl<T> crate::cmp::PartialEq<$id<T>> for $id<T> {
             #[inline]
             fn eq(&self, other: &Self) -> bool {
@@ -437,7 +434,7 @@ macro_rules! impl_minimal_p {
         }
 
         // FIXME: https://github.com/rust-lang-nursery/rust-clippy/issues/2892
-        #[cfg_attr(feature = "cargo-clippy", allow(clippy::partialeq_ne_impl))]
+        #[allow(clippy::partialeq_ne_impl)]
         impl<T> crate::cmp::PartialEq<LexicographicallyOrdered<$id<T>>>
             for LexicographicallyOrdered<$id<T>>
         {
@@ -621,8 +618,7 @@ macro_rules! impl_minimal_p {
             #[inline]
             pub unsafe fn from_slice_aligned_unchecked(slice: &[$elem_ty])
                                                        -> Self {
-                #[cfg_attr(feature = "cargo-clippy",
-                           allow(clippy::cast_ptr_alignment))]
+                #[allow(clippy::cast_ptr_alignment)]
                 *(slice.get_unchecked(0) as *const $elem_ty as *const Self)
             }
 
@@ -840,8 +836,7 @@ macro_rules! impl_minimal_p {
             pub unsafe fn write_to_slice_aligned_unchecked(
                 self, slice: &mut [$elem_ty],
             ) {
-                #[cfg_attr(feature = "cargo-clippy",
-                           allow(clippy::cast_ptr_alignment))]
+                #[allow(clippy::cast_ptr_alignment)]
                 *(slice.get_unchecked_mut(0) as *mut $elem_ty as *mut Self) =
                     self;
             }
@@ -1225,8 +1220,7 @@ macro_rules! impl_minimal_p {
             /// are difficult to satisfy. The only advantage of this method is
             /// that it enables more aggressive compiler optimizations.
             #[inline]
-            #[cfg_attr(feature = "cargo-clippy",
-                       allow(clippy::should_implement_trait))]
+            #[allow(clippy::should_implement_trait)]
             pub unsafe fn add(self, count: $usize_ty) -> Self {
                 self.offset(count.cast())
             }
@@ -1271,8 +1265,7 @@ macro_rules! impl_minimal_p {
             /// are difficult to satisfy. The only advantage of this method is
             /// that it enables more aggressive compiler optimizations.
             #[inline]
-            #[cfg_attr(feature = "cargo-clippy",
-                       allow(clippy::should_implement_trait))]
+            #[allow(clippy::should_implement_trait)]
             pub unsafe fn sub(self, count: $usize_ty) -> Self {
                 let x: $isize_ty = count.cast();
                 // note: - is currently wrapping_neg
diff --git a/src/api/reductions/mask.rs b/src/api/reductions/mask.rs
index 13d713067..0dd6a84e7 100644
--- a/src/api/reductions/mask.rs
+++ b/src/api/reductions/mask.rs
@@ -20,12 +20,13 @@ macro_rules! impl_reduction_mask {
             }
         }
 
-        test_if!{
+        test_if! {
             $test_tt:
             paste::item! {
                 pub mod [<$id _reduction>] {
                     use super::*;
-                    #[cfg_attr(not(target_arch = "wasm32"), test)] #[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)]
+                    #[cfg_attr(not(target_arch = "wasm32"), test)]
+                    #[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)]
                     fn all() {
                         let a = $id::splat(true);
                         assert!(a.all());
@@ -43,7 +44,8 @@ macro_rules! impl_reduction_mask {
                             }
                         }
                     }
-                    #[cfg_attr(not(target_arch = "wasm32"), test)] #[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)]
+                    #[cfg_attr(not(target_arch = "wasm32"), test)]
+                    #[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)]
                     fn any() {
                         let a = $id::splat(true);
                         assert!(a.any());
@@ -61,7 +63,8 @@ macro_rules! impl_reduction_mask {
                             }
                         }
                     }
-                    #[cfg_attr(not(target_arch = "wasm32"), test)] #[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)]
+                    #[cfg_attr(not(target_arch = "wasm32"), test)]
+                    #[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)]
                     fn none() {
                         let a = $id::splat(true);
                         assert!(!a.none());
diff --git a/src/api/slice/from_slice.rs b/src/api/slice/from_slice.rs
index ca83c7df7..109cd1f10 100644
--- a/src/api/slice/from_slice.rs
+++ b/src/api/slice/from_slice.rs
@@ -53,10 +53,7 @@ macro_rules! impl_slice_from_slice {
                     0
                 );
 
-                #[cfg_attr(
-                    feature = "cargo-clippy",
-                    allow(clippy::cast_ptr_alignment)
-                )]
+                #[allow(clippy::cast_ptr_alignment)]
                 *(target_ptr as *const Self)
             }
 
diff --git a/src/api/slice/write_to_slice.rs b/src/api/slice/write_to_slice.rs
index becb564d4..fcb288da7 100644
--- a/src/api/slice/write_to_slice.rs
+++ b/src/api/slice/write_to_slice.rs
@@ -55,20 +55,10 @@ macro_rules! impl_slice_write_to_slice {
                     0
                 );
 
-                                #[cfg_attr(feature = "cargo-clippy",
-                                           allow(clippy::cast_ptr_alignment))]
-                        #[cfg_attr(
-                            feature = "cargo-clippy",
-                            allow(clippy::cast_ptr_alignment)
-                        )]
-                #[cfg_attr(
-                    feature = "cargo-clippy",
-                    allow(clippy::cast_ptr_alignment)
-                )]
-                #[cfg_attr(
-                    feature = "cargo-clippy",
-                    allow(clippy::cast_ptr_alignment)
-                )]
+                                #[allow(clippy::cast_ptr_alignment)]
+                        #[allow(clippy::cast_ptr_alignment)]
+                #[allow(clippy::cast_ptr_alignment)]
+                #[allow(clippy::cast_ptr_alignment)]
                 *(target_ptr as *mut Self) = self;
             }
 
diff --git a/src/codegen/math/float.rs b/src/codegen/math/float.rs
index 02a2bea08..5e89bf6ae 100644
--- a/src/codegen/math/float.rs
+++ b/src/codegen/math/float.rs
@@ -1,5 +1,5 @@
 //! Vertical floating-point math operations.
-#![cfg_attr(feature = "cargo-clippy", allow(clippy::useless_transmute))]
+#![allow(clippy::useless_transmute)]
 
 #[macro_use]
 crate mod macros;
diff --git a/src/codegen/swap_bytes.rs b/src/codegen/swap_bytes.rs
index 15d47f68e..b435fb5da 100644
--- a/src/codegen/swap_bytes.rs
+++ b/src/codegen/swap_bytes.rs
@@ -24,7 +24,7 @@ macro_rules! impl_swap_bytes {
         $(
             impl SwapBytes for $id {
                 #[inline]
-                #[cfg_attr(feature = "cargo-clippy", allow(clippy::useless_transmute))]
+                #[allow(clippy::useless_transmute)]
                 fn swap_bytes(self) -> Self {
                     unsafe {
                         let bytes: u8x4 = crate::mem::transmute(self);
@@ -39,7 +39,7 @@ macro_rules! impl_swap_bytes {
         $(
             impl SwapBytes for $id {
                 #[inline]
-                #[cfg_attr(feature = "cargo-clippy", allow(clippy::useless_transmute))]
+                #[allow(clippy::useless_transmute)]
                 fn swap_bytes(self) -> Self {
                     unsafe {
                         let bytes: u8x8 = crate::mem::transmute(self);
@@ -56,7 +56,7 @@ macro_rules! impl_swap_bytes {
         $(
             impl SwapBytes for $id {
                 #[inline]
-                #[cfg_attr(feature = "cargo-clippy", allow(clippy::useless_transmute))]
+                #[allow(clippy::useless_transmute)]
                 fn swap_bytes(self) -> Self {
                     unsafe {
                         let bytes: u8x16 = crate::mem::transmute(self);
@@ -74,7 +74,7 @@ macro_rules! impl_swap_bytes {
         $(
             impl SwapBytes for $id {
                 #[inline]
-                #[cfg_attr(feature = "cargo-clippy", allow(clippy::useless_transmute))]
+                #[allow(clippy::useless_transmute)]
                 fn swap_bytes(self) -> Self {
                     unsafe {
                         let bytes: u8x32 = crate::mem::transmute(self);
@@ -94,7 +94,7 @@ macro_rules! impl_swap_bytes {
         $(
             impl SwapBytes for $id {
                 #[inline]
-                #[cfg_attr(feature = "cargo-clippy", allow(clippy::useless_transmute))]
+                #[allow(clippy::useless_transmute)]
                 fn swap_bytes(self) -> Self {
                     unsafe {
                         let bytes: u8x64 = crate::mem::transmute(self);
diff --git a/src/lib.rs b/src/lib.rs
index b27e9ace2..d73645e72 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -214,25 +214,17 @@
     crate_visibility_modifier,
     custom_inner_attributes
 )]
-#![allow(non_camel_case_types, non_snake_case)]
-#![cfg_attr(test, feature(hashmap_internals))]
-#![cfg_attr(
-    feature = "cargo-clippy",
-    allow(
-        clippy::cast_possible_truncation,
-        clippy::cast_lossless,
-        clippy::cast_possible_wrap,
-        clippy::cast_precision_loss,
-        // This lint is currently broken for generic code
-        // See https://github.com/rust-lang/rust-clippy/issues/3410
-        clippy::use_self
-    )
-)]
-#![cfg_attr(
-    feature = "cargo-clippy",
-    deny(clippy::missing_inline_in_public_items)
+#![allow(non_camel_case_types, non_snake_case,
+         clippy::cast_possible_truncation,
+         clippy::cast_lossless,
+         clippy::cast_possible_wrap,
+         clippy::cast_precision_loss,
+         // This lint is currently broken for generic code
+         // See https://github.com/rust-lang/rust-clippy/issues/3410
+         clippy::use_self
 )]
-#![deny(warnings, rust_2018_idioms)]
+#![cfg_attr(test, feature(hashmap_internals))]
+#![deny(warnings, rust_2018_idioms, clippy::missing_inline_in_public_items)]
 #![no_std]
 
 use cfg_if::cfg_if;
@@ -288,10 +280,7 @@ pub struct Simd<A: sealed::SimdArray>(
 /// and/or `Ord` traits.
 #[repr(transparent)]
 #[derive(Copy, Clone, Debug)]
-#[cfg_attr(
-    feature = "cargo-clippy",
-    allow(clippy::missing_inline_in_public_items)
-)]
+#[allow(clippy::missing_inline_in_public_items)]
 pub struct LexicographicallyOrdered<T>(T);
 
 mod masks;
diff --git a/src/masks.rs b/src/masks.rs
index 65c15cc5d..f83c4da95 100644
--- a/src/masks.rs
+++ b/src/masks.rs
@@ -36,7 +36,7 @@ macro_rules! impl_mask_ty {
             }
         }
 
-        #[cfg_attr(feature = "cargo-clippy", allow(clippy::partialeq_ne_impl))]
+        #[allow(clippy::partialeq_ne_impl)]
         impl PartialEq<$id> for $id {
             #[inline]
             fn eq(&self, other: &Self) -> bool {