248 |
}
|
249 |
#[allow(clippy::zero_prefixed_literal, clippy::identity_op)]
|
250 |
fn encode_u29(&mut self, u29: u32) -> io::Result<()> {
|
123 |
#[allow(clippy::zero_prefixed_literal)]
|
124 |
#[cfg(test)]
|
21 |
#[rustfmt::skip]
|
22 |
#[allow(clippy::zero_prefixed_literal)]
|
23 |
const CHAR_TO_BYTE: [u8; 256] = [
|
182 |
#[test]
|
183 |
#[allow(clippy::zero_prefixed_literal)]
|
184 |
fn two_variable_len_options_encoding() {
|
85 |
#[test]
|
86 |
#[allow(clippy::zero_prefixed_literal)]
|
87 |
fn fixed_len_struct_encoding() {
|
145 |
#[test]
|
146 |
#[allow(clippy::zero_prefixed_literal)]
|
147 |
fn offset_into_fixed_bytes() {
|
176 |
#[test]
|
177 |
#[allow(clippy::zero_prefixed_literal)]
|
178 |
fn first_offset_skips_byte() {
|
191 |
#[test]
|
192 |
#[allow(clippy::zero_prefixed_literal)]
|
193 |
fn variable_len_struct_encoding() {
|
280 |
#[test]
|
281 |
#[allow(clippy::zero_prefixed_literal)]
|
282 |
fn offsets_decreasing() {
|
182 |
#[test]
|
183 |
#[allow(clippy::zero_prefixed_literal)]
|
184 |
fn two_variable_len_options_encoding() {
|
105 |
#[test]
|
106 |
#[allow(clippy::zero_prefixed_literal)]
|
107 |
fn fixed_len_struct_encoding() {
|
165 |
#[test]
|
166 |
#[allow(clippy::zero_prefixed_literal)]
|
167 |
fn offset_into_fixed_bytes() {
|
196 |
#[test]
|
197 |
#[allow(clippy::zero_prefixed_literal)]
|
198 |
fn first_offset_skips_byte() {
|
211 |
#[test]
|
212 |
#[allow(clippy::zero_prefixed_literal)]
|
213 |
fn variable_len_struct_encoding() {
|
300 |
#[test]
|
301 |
#[allow(clippy::zero_prefixed_literal)]
|
302 |
fn offsets_decreasing() {
|
694 |
#[test]
|
695 |
#[allow(clippy::zero_prefixed_literal)]
|
696 |
fn test_encode_decode_2d() -> Result<(), Error> {
|
750 |
#[test]
|
751 |
#[allow(clippy::zero_prefixed_literal)]
|
752 |
fn test_encode_decode_3d() -> Result<(), Error> {
|
139 |
#[test]
|
140 |
#[allow(clippy::zero_prefixed_literal)]
|
141 |
fn from_numeric() {
|
75 |
#[allow(clippy::zero_prefixed_literal)]
|
76 |
static HEX: [u8; 256] = {
|
1136 |
#[allow(clippy::zero_prefixed_literal)]
|
1137 |
static HEX: [u8; 256] = {
|
231 |
#[allow(clippy::zero_prefixed_literal)]
|
232 |
let date = {
|
263 |
#[test]
|
264 |
#[allow(clippy::zero_prefixed_literal)]
|
265 |
fn test_read_date() {
|
305 |
#[allow(clippy::zero_prefixed_literal)]
|
306 |
let date = {
|
58 |
fn test_new_returns_error_if_start_after_end_date() {
|
59 |
#[allow(clippy::zero_prefixed_literal)]
|
60 |
let start = NaiveDateTime::new(
|
65 |
#[allow(clippy::zero_prefixed_literal)]
|
66 |
let end = NaiveDateTime::new(
|
77 |
fn test_new_returns_ok_if_start_is_before_end() {
|
78 |
#[allow(clippy::zero_prefixed_literal)]
|
79 |
let start = NaiveDateTime::new(
|
84 |
#[allow(clippy::zero_prefixed_literal)]
|
85 |
let end = NaiveDateTime::new(
|
106 |
#[allow(clippy::zero_prefixed_literal)]
|
107 |
#[rustfmt::skip]
|
138 |
#[allow(clippy::zero_prefixed_literal)]
|
139 |
#[allow(dead_code)]
|
166 |
#[allow(clippy::zero_prefixed_literal)]
|
167 |
#[rustfmt::skip]
|
1160 |
/// returns the 4x4 determinant using laplace expansion theorum
|
1161 |
#[allow(clippy::zero_prefixed_literal)]
|
1162 |
impl<T> MatDeterminant<T> for Mat4<T> where T: Number {
|
1235 |
#[allow(clippy::zero_prefixed_literal)]
|
1236 |
impl<T> MatInverse<T> for Mat4<T> where T: SignedNumber {
|
575 |
#[allow(clippy::zero_prefixed_literal)]
|
576 |
const TIMEZONE_ABBR: &[(&[u8], (i8, i8))] = &[
|
128 |
// Clippy false positive: https://github.com/rust-lang/rust-clippy/issues/5169
|
129 |
#[allow(clippy::zero_prefixed_literal)]
|
130 |
fn escape_str(value: &str, out: &mut String) {
|
133 |
// Clippy false positive: https://github.com/rust-lang/rust-clippy/issues/5169
|
134 |
#[allow(clippy::zero_prefixed_literal)]
|
135 |
fn escape_str(value: &str, out: &mut String) {
|
131 |
// Clippy false positive: https://github.com/rust-lang/rust-clippy/issues/5169
|
132 |
#[allow(clippy::zero_prefixed_literal)]
|
133 |
fn escape_str<const CAP: usize>(value: &str, out: &mut ArrayString<CAP>) {
|
214 |
}
|
215 |
#[allow(clippy::zero_prefixed_literal)]
|
216 |
impl CastWithRules<NaiveDateTime> for Value {
|
36 |
/// Defines the current ABI version
|
37 |
#[allow(clippy::zero_prefixed_literal)]
|
38 |
pub const ABI_VERSION: u32 = 00_03_00;
|
5 |
#[allow(clippy::zero_prefixed_literal)]
|
6 |
pub fn encode(c: &mut Criterion) {
|
114 |
#[allow(clippy::zero_prefixed_literal)]
|
115 |
pub fn decode_case_sensitive(c: &mut Criterion) {
|
223 |
#[allow(clippy::zero_prefixed_literal)]
|
224 |
pub fn decode_case_insensitive(c: &mut Criterion) {
|
58 |
#[rustfmt::skip]
|
59 |
#[allow(clippy::zero_prefixed_literal)]
|
60 |
file.write_all(
|
37 |
#[allow(clippy::zero_prefixed_literal)]
|
38 |
#[test]
|
72 |
#[allow(clippy::zero_prefixed_literal)]
|
73 |
#[test]
|
157 |
#[allow(clippy::zero_prefixed_literal)]
|
158 |
#[test]
|
191 |
#[allow(clippy::zero_prefixed_literal)]
|
192 |
#[test]
|
211 |
#[allow(clippy::zero_prefixed_literal)]
|
212 |
#[test]
|
158 |
#[allow(clippy::unreadable_literal)]
|
159 |
#[allow(clippy::zero_prefixed_literal)]
|
160 |
mod tests {
|
9 |
//let time_limit: u64 = 001_000_000_000;
|
10 |
#[allow(clippy::zero_prefixed_literal)]
|
11 |
let time_limit: u64 = 000_051_111_000;
|
85 |
#[test]
|
86 |
#[allow(clippy::zero_prefixed_literal)]
|
87 |
fn fixed_len_struct_encoding() {
|
145 |
#[test]
|
146 |
#[allow(clippy::zero_prefixed_literal)]
|
147 |
fn offset_into_fixed_bytes() {
|
176 |
#[test]
|
177 |
#[allow(clippy::zero_prefixed_literal)]
|
178 |
fn first_offset_skips_byte() {
|
191 |
#[test]
|
192 |
#[allow(clippy::zero_prefixed_literal)]
|
193 |
fn variable_len_struct_encoding() {
|
280 |
#[test]
|
281 |
#[allow(clippy::zero_prefixed_literal)]
|
282 |
fn offsets_decreasing() {
|
85 |
#[test]
|
86 |
#[allow(clippy::zero_prefixed_literal)]
|
87 |
fn fixed_len_struct_encoding() {
|
145 |
#[test]
|
146 |
#[allow(clippy::zero_prefixed_literal)]
|
147 |
fn offset_into_fixed_bytes() {
|
176 |
#[test]
|
177 |
#[allow(clippy::zero_prefixed_literal)]
|
178 |
fn first_offset_skips_byte() {
|
191 |
#[test]
|
192 |
#[allow(clippy::zero_prefixed_literal)]
|
193 |
fn variable_len_struct_encoding() {
|
280 |
#[test]
|
281 |
#[allow(clippy::zero_prefixed_literal)]
|
282 |
fn offsets_decreasing() {
|
4 |
#[allow(clippy::as_conversions, clippy::zero_prefixed_literal)]
|
5 |
impl HalfBytesMask {
|
3 |
#[allow(clippy::zero_prefixed_literal)]
|
4 |
pub static NES_COLOR_PALLETE: [Color; 64] = [
|
602 |
#[allow(clippy::zero_prefixed_literal)]
|
603 |
static HEX: [u8; 256] = {
|
77 |
#[rustfmt::skip]
|
78 |
#[allow(clippy::zero_prefixed_literal)]
|
79 |
const fn construct_litlen_decode_table() -> [u32; 288]
|
123 |
#[rustfmt::skip]
|
124 |
#[allow(clippy::zero_prefixed_literal)] // the things we do for alignment
|
125 |
pub static OFFSET_DECODE_RESULTS: [u32; 32] = [
|
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
|
201 |
#![allow(clippy::bool_assert_comparison)]
|
202 |
#![allow(clippy::zero_prefixed_literal)]
|
203 |
#![allow(clippy::type_complexity)]
|
84 |
mod tests {
|
85 |
#![allow(clippy::zero_prefixed_literal)]
|
86 |
#![allow(clippy::unreadable_literal)]
|
155 |
mod tests {
|
156 |
#![allow(clippy::zero_prefixed_literal)]
|
157 |
#![allow(clippy::unreadable_literal)]
|
84 |
mod tests {
|
85 |
#![allow(clippy::zero_prefixed_literal)]
|
86 |
#![allow(clippy::unreadable_literal)]
|
119 |
use_self,
|
120 |
zero_prefixed_literal,
|
121 |
// correctly used
|
348 |
clippy::use_self,
|
349 |
clippy::zero_prefixed_literal,
|
350 |
// we support older compilers
|
1 |
#![allow(clippy::zero_prefixed_literal, clippy::inconsistent_digit_grouping)]
|
1 |
#![allow(clippy::zero_prefixed_literal, clippy::inconsistent_digit_grouping)]
|
1 |
#![allow(clippy::zero_prefixed_literal, clippy::inconsistent_digit_grouping)]
|
1 |
#![allow(clippy::zero_prefixed_literal, clippy::inconsistent_digit_grouping)]
|
96 |
#![allow(clippy::zero_prefixed_literal)]
|
1 |
#![allow(clippy::zero_prefixed_literal)]
|
1 |
#![allow(clippy::zero_prefixed_literal)]
|
1 |
#![allow(clippy::zero_prefixed_literal)]
|
26 |
// We use 0 prefices for lining up constants across multiple lines
|
27 |
#![allow(clippy::zero_prefixed_literal)]
|
15 |
clippy::uninlined_format_args,
|
16 |
clippy::zero_prefixed_literal
|
17 |
)]
|
66 |
clippy::identity_op,
|
67 |
clippy::zero_prefixed_literal,
|
68 |
clippy::excessive_precision,
|
11 |
#![allow(clippy::zero_prefixed_literal, clippy::type_complexity)]
|
1 |
#![warn(rust_2018_idioms, single_use_lifetimes)]
|
2 |
#![allow(clippy::zero_prefixed_literal, clippy::non_ascii_literal, clippy::assertions_on_constants)]
|
14 |
#![allow(clippy::zero_prefixed_literal)]
|
11 |
#![allow(clippy::zero_prefixed_literal)]
|
1 |
#![allow(clippy::zero_prefixed_literal)]
|
4 |
#![allow(clippy::inconsistent_digit_grouping)]
|
5 |
#![allow(clippy::zero_prefixed_literal)]
|
1 |
#![allow(clippy::zero_prefixed_literal)]
|
2 |
#![allow(clippy::redundant_field_names)]
|
1 |
#![allow(clippy::zero_prefixed_literal)]
|
1 |
#![allow(clippy::zero_prefixed_literal)]
|
124 |
use_self,
|
125 |
zero_prefixed_literal,
|
126 |
// correctly used
|
355 |
clippy::use_self,
|
356 |
clippy::zero_prefixed_literal,
|
357 |
// we support older compilers
|
356 |
clippy::use_self,
|
357 |
clippy::zero_prefixed_literal,
|
358 |
// we support older compilers
|
314 |
use_self,
|
315 |
zero_prefixed_literal,
|
316 |
// we support older compilers
|
327 |
use_self,
|
328 |
zero_prefixed_literal,
|
329 |
// we support older compilers
|
348 |
clippy::use_self,
|
349 |
clippy::zero_prefixed_literal,
|
350 |
// we support older compilers
|
132 |
#![cfg_attr(feature = "cargo-clippy", allow(type_complexity))]
|
133 |
#![cfg_attr(feature = "cargo-clippy", allow(zero_prefixed_literal))]
|
134 |
// Blacklisted Rust lints.
|
48 |
clippy::wildcard_imports,
|
49 |
clippy::zero_prefixed_literal,
|
50 |
unstable_name_collisions
|
11 |
#![allow(clippy::zero_prefixed_literal, clippy::type_complexity)]
|
146 |
#![allow(overflowing_literals)]
|
147 |
#![allow(clippy::zero_prefixed_literal)]
|
148 |
#![allow(clippy::missing_safety_doc)]
|
3 |
// The way I write numbers to make them easy to read makes clippy angry
|
4 |
#![allow(clippy::zero_prefixed_literal)]
|
5 |
#![allow(clippy::inconsistent_digit_grouping)]
|