21 |
#[inline]
|
22 |
#[allow(clippy::cast_lossless)]
|
23 |
pub(crate) fn apply_mask(buf: &mut [u8], mask_u32: u32) {
|
39 |
#[allow(clippy::cast_lossless)]
|
40 |
impl From<u8> for Units {
|
46 |
#[allow(clippy::cast_lossless)]
|
47 |
impl From<u16> for Units {
|
67 |
#[allow(clippy::cast_lossless)]
|
68 |
impl From<i8> for Units {
|
74 |
#[allow(clippy::cast_lossless)]
|
75 |
impl From<i16> for Units {
|
49 |
// is disabled.
|
50 |
#[allow(clippy::cast_lossless)]
|
51 |
libc::ioctl(fd, TIOCSCTTY as _, 0)
|
82 |
#[allow(clippy::cast_lossless)]
|
83 |
impl Camera {
|
377 |
impl Viewport {
|
378 |
#![allow(clippy::cast_lossless)] // lossiness depends on size of usize
|
381 |
// We should abstract it out if we like this style
|
382 |
#[allow(clippy::cast_lossless)] // warns on 32-bit but f64::from() is not an option on 64-bit
|
383 |
let stone_range: Vec<Block> = (-2..=2_isize)
|
84 |
clippy::cast_precision_loss,
|
85 |
clippy::cast_lossless
|
86 |
)]
|
102 |
#[allow(clippy::cast_precision_loss, clippy::cast_lossless)]
|
103 |
fn usize_to_f64(a: usize) -> f64 {
|
62 |
#[inline]
|
63 |
#[allow(clippy::cast_lossless)]
|
64 |
fn write(&mut self, bytes: &[u8]) {
|
105 |
#[allow(clippy::cast_sign_loss)]
|
106 |
#[allow(clippy::cast_lossless)]
|
107 |
#[must_use]
|
154 |
#[allow(clippy::float_cmp, clippy::cast_lossless, clippy::cast_precision_loss)]
|
155 |
fn visit_f64<E: serde::de::Error>(self, v: f64) -> Result<Self::Value, E> {
|
60 |
#[allow(clippy::cast_lossless)]
|
61 |
pub fn push<T>(&mut self, value: T)
|
17 |
) -> BoxedFuture<'a, Result<(), Error>> {
|
18 |
#[allow(clippy::cast_lossless, clippy::cast_precision_loss)]
|
19 |
Box::pin(async move {
|
132 |
/// Valid levels are 1-12.
|
133 |
#[allow(clippy::cast_lossless)]
|
134 |
pub fn new(level: u8) -> BgzfResult<Self> {
|
98 |
// we may truncate the value here but that's ok
|
99 |
#[allow(clippy::cast_lossless)]
|
100 |
#[allow(clippy::cast_sign_loss)]
|
906 |
#[allow(clippy::cast_lossless)]
|
907 |
#[inline]
|
240 |
#[allow(clippy::cast_lossless)]
|
241 |
impl Cedar {
|
41 |
/// [`IMAGE_LOAD_CONFIG_DIRECTORY32`](https://docs.microsoft.com/en-us/windows/win32/api/winnt/ns-winnt-image_load_config_directory32)
|
42 |
#[allow(clippy::cast_lossless)]
|
43 |
#[repr(C)]
|
90 |
/// [`IMAGE_LOAD_CONFIG_DIRECTORY64`](https://docs.microsoft.com/en-us/windows/win32/api/winnt/ns-winnt-image_load_config_directory64)
|
91 |
#[allow(clippy::cast_lossless)]
|
92 |
#[repr(C)]
|
142 |
fn from(cfg: ImageLoadConfigDirectory32) -> Self {
|
143 |
#[allow(clippy::cast_lossless)]
|
144 |
Self {
|
15 |
#[allow(clippy::cast_lossless)]
|
16 |
pub mod yaml_ser;
|
176 |
fn test_encode_oversized_namespace() {
|
177 |
#[allow(clippy::cast_lossless)]
|
178 |
let long_str = String::from_utf8(vec![0; (u16::MAX as u32 + 1) as usize]).unwrap();
|
197 |
// be mocked somehow.
|
198 |
#[allow(clippy::cast_lossless)]
|
199 |
let long_str = String::from_utf8(vec![0; (u32::MAX as u64 + 1) as usize]).unwrap();
|
625 |
#[allow(clippy::cast_lossless)]
|
626 |
#[allow(clippy::cast_possible_truncation)]
|
671 |
#[allow(clippy::cast_lossless)]
|
672 |
#[allow(clippy::cast_possible_truncation)]
|
63 |
impl From<u8> for NiceU8 {
|
64 |
#[allow(clippy::cast_lossless)] // Seems less performant.
|
65 |
#[allow(unsafe_code)]
|
99 |
#[allow(clippy::cast_lossless)]
|
100 |
const fn rbar_reset(region: u8) -> u32 {
|
184 |
#[allow(clippy::cast_lossless)]
|
185 |
const fn rbar_reset(region: u8) -> u32 {
|
96 |
#[cfg_attr(feature = "cargo-clippy", allow(cast_lossless))]
|
97 |
const fn rbar_reset(region: u8) -> u32 {
|
21 |
#[inline]
|
22 |
#[allow(clippy::cast_lossless)]
|
23 |
pub(crate) fn apply_mask(buf: &mut [u8], mask_u32: u32) {
|
1125 |
#[test]
|
1126 |
#[allow(clippy::cast_lossless)]
|
1127 |
fn bit_count_residual() -> Result<(), EncodeError> {
|
16 |
impl Version {
|
17 |
#[allow(clippy::cast_lossless)] // u32::from() is not const
|
18 |
pub const fn new(major: u8, minor: u8, build: u8, revision: u8) -> Version {
|
366 |
/// Returns whether the event was sent explicitly.
|
367 |
#[allow(clippy::cast_lossless)]
|
368 |
#[doc(alias = "get_send_event")]
|
26 |
#[allow(clippy::cast_lossless)]
|
27 |
impl EntryBuffer {
|
1001 |
#[inline]
|
1002 |
#[allow(clippy::cast_lossless)] // const fn
|
1003 |
pub const fn from_raw_parts(index: usize, generation: u16, meta: u16) -> Self {
|
22 |
#[allow(clippy::suspicious_arithmetic_impl, clippy::cast_lossless)]
|
23 |
fn sub(self, rhs: CpuUsage) -> Self::Output {
|
21 |
#[allow(clippy::suspicious_arithmetic_impl, clippy::cast_lossless)]
|
22 |
fn sub(self, rhs: CpuUsage) -> Self::Output {
|
149 |
#[allow(clippy::cast_lossless)]
|
150 |
pub fn timed_wait(&mut self, view: &View, timeout: Option<Duration>) -> Result<()> {
|
23 |
}
|
24 |
#[allow(clippy::cast_lossless)]
|
25 |
/// Return a new int
|
1335 |
// This can also be with TryInto, but that requires 1.34
|
1336 |
#[allow(clippy::cast_lossless)]
|
1337 |
fn i32_from_i64(i: i64) -> Option<i32> {
|
1093 |
pub fn create_vcpu(&self, id: u64) -> Result<VcpuFd> {
|
1094 |
#[allow(clippy::cast_lossless)]
|
1095 |
// SAFETY: Safe because we know that vm is a VM fd and we verify the return result.
|
344 |
if tv_sec >> 34 == 0 {
|
345 |
#[allow(clippy::cast_lossless)]
|
346 |
let data64: u64 = ((tv_nsec as u64) << 34) | tv_sec as u64;
|
385 |
let data32 = rd.read_u32::<byteorder::BigEndian>()?;
|
386 |
#[allow(clippy::cast_lossless)]
|
387 |
let naive = chrono::NaiveDateTime::from_timestamp(data32 as i64, 0);
|
403 |
#[allow(clippy::cast_lossless)]
|
404 |
let naive = chrono::NaiveDateTime::from_timestamp(tv_sec as i64, tv_nsec as u32);
|
562 |
fn write<W: Write>(&self, _mapping: &M, wr: &mut W) -> Result<(), Error> {
|
563 |
#[allow(clippy::cast_lossless)]
|
564 |
rmp::encode::write_sint(wr, *self as i64)?;
|
577 |
fn write<W: Write>(&self, _mapping: &M, wr: &mut W) -> Result<(), Error> {
|
578 |
#[allow(clippy::cast_lossless)]
|
579 |
rmp::encode::write_sint(wr, *self as i64)?;
|
460 |
#[allow(clippy::cast_lossless)]
|
461 |
if mopt.pilot_time > mopt.period_pilot {
|
37 |
{
|
38 |
#[allow(clippy::cast_precision_loss, clippy::cast_lossless)]
|
39 |
fn compute(entry: &mut Testcase<S::Input>, _state: &S) -> Result<f64, Error> {
|
65 |
clippy::cast_sign_loss,
|
66 |
clippy::cast_lossless
|
67 |
)]
|
294 |
/// Compute the `weight` used in weighted corpus entry selection algo
|
295 |
#[allow(clippy::cast_precision_loss, clippy::cast_lossless)]
|
296 |
fn compute(entry: &mut Testcase<S::Input>, state: &S) -> Result<f64, Error> {
|
133 |
clippy::cast_precision_loss,
|
134 |
clippy::cast_lossless
|
135 |
)]
|
33 |
#[allow(clippy::cast_lossless)]
|
34 |
pub fn load_u64_le(x: &[u8]) -> u64 {
|
520 |
impl Test {
|
521 |
#[allow(clippy::neg_multiply, clippy::cast_lossless)]
|
522 |
pub fn new<S>(text: S, index: usize) -> Test
|
627 |
/// What is the mean size of the intervals
|
628 |
#[allow(clippy::cast_lossless)]
|
629 |
pub fn mean_interval_size(&self) -> f64 {
|
142 |
// The mode.bits cast is only lossless on some OSes
|
143 |
#[allow(clippy::cast_lossless)]
|
144 |
pub fn mq_open(
|
295 |
#[allow(clippy::cast_lossless)]
|
296 |
fn refresh_camera_format(&mut self) -> Result<(), NokhwaError> {
|
431 |
#[allow(clippy::cast_precision_loss)]
|
432 |
#[allow(clippy::cast_lossless)]
|
433 |
fn set_camera_control(
|
75 |
/// If the associated control is not found, this will return `None` (`ColorEnable`, `Roll`)
|
76 |
#[allow(clippy::cast_lossless)]
|
77 |
pub fn id_to_known_camera_control(id: u32) -> KnownCameraControl {
|
830 |
/// If the associated control is not found, this will return `None` (`ColorEnable`, `Roll`)
|
831 |
#[allow(clippy::cast_lossless)]
|
832 |
pub fn id_to_known_camera_control(id: u32) -> KnownCameraControl {
|
49 |
impl FormatToken {
|
50 |
#[allow(clippy::cast_lossless)]
|
51 |
fn read<T : Read + std::io::Seek>(sysdic : &mut T, original_id : u32) -> Result<FormatToken, &'static str>
|
218 |
/// Ensures that sys.dic and matrix.bin have compatible connection matrix sizes.
|
219 |
#[allow(clippy::cast_lossless)]
|
220 |
pub fn load(
|
283 |
/// Does nothing if the prepare_full_matrix_cache has already been called.
|
284 |
#[allow(clippy::cast_lossless)]
|
285 |
pub fn prepare_fast_matrix_cache(&mut self, fast_left_edges : Vec<u16>, fast_right_edges : Vec<u16>)
|
427 |
#[allow(clippy::cast_lossless)]
|
428 |
fn access_matrix(&self, left : u16, right : u16) -> i16
|
21 |
#[inline]
|
22 |
#[allow(clippy::cast_lossless)]
|
23 |
pub(crate) fn apply_mask(buf: &mut [u8], mask_u32: u32) {
|
138 |
#[allow(clippy::cast_lossless)] // safe: allow cast through `as` because it is type-safe
|
139 |
pub(crate) fn decode_variable_length_cursor<B: Buf>(src: &mut B) -> Result<u32, DecodeError> {
|
74 |
// is disabled.
|
75 |
#[allow(clippy::cast_lossless)]
|
76 |
libc::ioctl(fd, TIOCSCTTY as _, 0)
|
119 |
#[inline]
|
120 |
#[allow(clippy::cast_lossless, clippy::cast_possible_truncation)]
|
121 |
pub fn hash_index(self) -> u8
|
21 |
#[inline]
|
22 |
#[allow(clippy::cast_lossless)]
|
23 |
pub(crate) fn apply_mask(buf: &mut [u8], mask_u32: u32) {
|
609 |
#[must_use]
|
610 |
#[allow(clippy::cast_lossless)]
|
611 |
pub fn regular_rotated(n: u32, center: (u32, u32), radius: u32, angle: f64) -> Self {
|
140 |
impl Encoder for GifEncoder {
|
141 |
#[allow(clippy::cast_lossless)]
|
142 |
fn encode<P: Pixel>(&mut self, image: &Image<P>, dest: &mut impl Write) -> crate::Result<()> {
|
152 |
#[allow(clippy::cast_lossless, clippy::cast_precision_loss)]
|
153 |
fn encode_sequence<P: Pixel>(
|
217 |
) -> Option<crate::Result<(&gif::Frame, Image<P>)>> {
|
218 |
#[allow(clippy::cast_lossless)]
|
219 |
let width = decoder.width() as u32;
|
220 |
#[allow(clippy::cast_lossless)]
|
221 |
let height = decoder.height() as u32;
|
279 |
#[allow(clippy::cast_lossless)]
|
280 |
fn decode(&mut self, stream: R) -> crate::Result<Image<P>> {
|
118 |
#[allow(clippy::cast_lossless)]
|
119 |
fn decode(&mut self, stream: R) -> Result<Image<P>> {
|
54 |
#[allow(clippy::cast_lossless, clippy::cast_possible_wrap)]
|
55 |
fn encode_image<P: Pixel>(&self, image: &Image<P>) -> crate::Result<libwebp::WebPData> {
|
133 |
#[allow(clippy::cast_lossless, clippy::cast_possible_wrap)]
|
134 |
impl Encoder for WebPEncoder {
|
27 |
};
|
28 |
#[allow(clippy::cast_lossless)]
|
29 |
let ret = unsafe { C::setrlimit(resource.as_raw() as _, &rlim) };
|
43 |
let mut rlim = unsafe { mem::zeroed() };
|
44 |
#[allow(clippy::cast_lossless)]
|
45 |
let ret = unsafe { C::getrlimit(resource.as_raw() as _, &mut rlim) };
|
105 |
#[allow(clippy::cast_lossless)]
|
106 |
let ret = unsafe { prlimit64(pid, resource.as_raw() as _, new_rlimit_ptr, old_rlimit_ptr) };
|
230 |
#[allow(clippy::cast_lossless)]
|
231 |
if (shift as usize) < 8 * size_of_val(&hash) {
|
330 |
#[cfg(test)]
|
331 |
#[allow(clippy::cast_lossless)]
|
332 |
#[allow(clippy::many_single_char_names)]
|
186 |
#[cfg(test)]
|
187 |
#[allow(clippy::cast_lossless)]
|
188 |
mod tests {
|
660 |
#[test]
|
661 |
#[allow(clippy::cast_lossless)]
|
662 |
#[allow(clippy::cast_possible_truncation)]
|
167 |
#[must_use]
|
168 |
#[allow(clippy::cast_lossless)]
|
169 |
fn try_from_le_byte_iter<I>(iter: I) -> Option<Self>
|
348 |
#[allow(clippy::cast_lossless)]
|
349 |
#[allow(clippy::cast_possible_truncation)]
|
489 |
fn try_from(value: f32) -> Result<Self, Self::Error> {
|
490 |
#[allow(clippy::cast_lossless)]
|
491 |
Self::try_from(value as f64)
|
560 |
#[allow(clippy::cast_lossless)] // Safe casts
|
561 |
#[allow(clippy::use_self)] // More readable
|
583 |
#[allow(clippy::cast_lossless)] // Safe casts
|
584 |
#[allow(clippy::use_self)] // More readable
|
90 |
};
|
91 |
#[allow(clippy::cast_lossless)]
|
92 |
if digit > base as u64 {
|
99 |
let mut carry = digit;
|
100 |
#[allow(clippy::cast_lossless)]
|
101 |
#[allow(clippy::cast_possible_truncation)]
|
676 |
#[allow(clippy::cast_lossless)]
|
677 |
create_as(
|
21 |
#[inline]
|
22 |
#[allow(clippy::cast_lossless)]
|
23 |
pub(crate) fn apply_mask(buf: &mut [u8], mask_u32: u32) {
|
286 |
impl std::ops::AddAssign<u32> for Bitvec {
|
287 |
#[allow(clippy::cast_lossless)]
|
288 |
fn add_assign(&mut self, rhs: u32) {
|
82 |
fn encode_assertions(&self, encodable: u128) {
|
83 |
#[allow(clippy::cast_lossless)]
|
84 |
match encodable & self.mask as u128 {
|
95 |
}
|
96 |
#[allow(clippy::cast_lossless)]
|
97 |
match 1u128.overflowing_shl((self.encodable_size + self.m + 1) as u32) {
|
80 |
fn encode_assertions(&self, encodable: u64) {
|
81 |
#[allow(clippy::cast_lossless)]
|
82 |
match encodable & (self.mask as u64) {
|
93 |
}
|
94 |
#[allow(clippy::cast_lossless)]
|
95 |
match 1u64.overflowing_shl((self.encodable_size + self.m + 1) as u32) {
|
122 |
// but this not doable as `u32::from` is not a const fn.
|
123 |
#[allow(clippy::cast_lossless)]
|
124 |
#[must_use]
|
449 |
#[cfg(feature = "nightly")]
|
450 |
#[cfg_attr(feature = "cargo-clippy", allow(cast_lossless))]
|
451 |
const fn to_int_be(s: &[u8]) -> u64 {
|
462 |
#[cfg(feature = "nightly")]
|
463 |
#[cfg_attr(feature = "cargo-clippy", allow(cast_lossless))]
|
464 |
const fn to_int_le(s: &[u8]) -> u64 {
|
167 |
#[allow(clippy::cast_lossless)]
|
168 |
#[inline]
|
175 |
#[allow(clippy::cast_lossless)]
|
176 |
#[inline]
|
183 |
#[allow(clippy::cast_lossless)]
|
184 |
#[inline]
|
191 |
#[allow(clippy::cast_lossless)]
|
192 |
#[inline]
|
160 |
#[allow(clippy::cast_lossless)]
|
161 |
#[inline]
|
170 |
#[allow(clippy::cast_lossless)]
|
171 |
#[inline]
|
195 |
#[allow(clippy::cast_lossless)]
|
196 |
#[inline]
|
220 |
#[allow(clippy::cast_lossless)]
|
221 |
#[inline]
|
182 |
impl From<SymID> for i64 {
|
183 |
#[allow(clippy::cast_lossless)]
|
184 |
fn from(v: SymID) -> i64 {
|
71 |
clippy::cast_precision_loss,
|
72 |
clippy::cast_lossless
|
73 |
)]
|
89 |
#[allow(clippy::cast_precision_loss, clippy::cast_lossless)]
|
90 |
fn usize_to_f64(a: usize) -> f64 {
|
63 |
#[allow(clippy::cast_lossless)]
|
64 |
impl GStreamer {
|
118 |
clippy::cast_possible_truncation,
|
119 |
clippy::cast_lossless
|
120 |
)]
|
8 |
clippy::cast_possible_truncation,
|
9 |
clippy::cast_lossless,
|
10 |
clippy::cast_possible_wrap,
|
351 |
clippy::cast_possible_truncation,
|
352 |
clippy::cast_lossless
|
353 |
)]
|
87 |
impl Default for Xywh {
|
88 |
#[allow(clippy::cast_lossless, clippy::cast_possible_truncation)]
|
89 |
fn default() -> Self {
|
189 |
#[allow(
|
190 |
clippy::cast_lossless,
|
191 |
clippy::cast_possible_truncation,
|
83 |
#[allow(clippy::cast_lossless)]
|
84 |
fn make_test_response(response: &Response<TestOutput>) -> http_tests::TestResponse {
|
167 |
/// Get the desired coercion, ignoring currently active type
|
168 |
#[allow(clippy::cast_lossless)]
|
169 |
pub fn get_coercion(value: i32) -> Option<i32> {
|
177 |
/// Get the currently active type, ignoring coercion
|
178 |
#[allow(clippy::cast_lossless)]
|
179 |
pub fn get_current_type(value: i32) -> i32 {
|
71 |
/// 63 encoded bytes, the DNS limit on domain name labels.
|
72 |
#[cfg_attr(feature = "cargo-clippy", allow(cast_lossless))]
|
73 |
pub fn decode(input: &str) -> Option<Vec<char>> {
|
228 |
#[allow(clippy::cast_lossless)]
|
229 |
fn unexpected(&self) -> serde::de::Unexpected {
|
68 |
#[allow(clippy::cast_lossless)]
|
69 |
pub(crate) fn unexpected(&self) -> serde::de::Unexpected {
|
129 |
/// sign:mandatory]:[offset_second]", or an error if the method fails.
|
130 |
#[allow(clippy::cast_lossless)]
|
131 |
pub fn get_local_timestamp_from_offset_rfc3339(utc_offset: UtcOffset) -> Result<String, Error> {
|
173 |
#[allow(clippy::cast_lossless, clippy::cast_possible_truncation)] // It fits.
|
174 |
#[must_use]
|
8 |
#[allow(trivial_casts)]
|
9 |
#[allow(clippy::cast_lossless)]
|
10 |
#[allow(clippy::cast_possible_truncation)]
|
380 |
#[allow(clippy::cast_lossless)]
|
381 |
#[allow(clippy::many_single_char_names)]
|
181 |
assert_eq!(buf.len(), 4);
|
182 |
#[allow(clippy::cast_lossless)]
|
183 |
let width: u16 = (buf[0] as u16) << 8 | buf[1] as u16;
|
184 |
#[allow(clippy::cast_lossless)]
|
185 |
let height: u16 = (buf[2] as u16) << 8 | buf[3] as u16;
|
181 |
assert_eq!(buf.len(), 4);
|
182 |
#[allow(clippy::cast_lossless)]
|
183 |
let width: u16 = (buf[0] as u16) << 8 | buf[1] as u16;
|
184 |
#[allow(clippy::cast_lossless)]
|
185 |
let height: u16 = (buf[2] as u16) << 8 | buf[3] as u16;
|
178 |
pub fn rgba(red: u8, green: u8, blue: u8, alpha: u8) -> Self {
|
179 |
#[allow(clippy::cast_lossless)]
|
180 |
let word = (blue as u32) << 24 | (green as u32) << 16 | (red as u32) << 8 | alpha as u32;
|
382 |
#[allow(clippy::collapsible_else_if)]
|
383 |
#[allow(clippy::cast_lossless)]
|
384 |
fn parse_num(ps: &mut State) -> Result<VVal, ParseError> {
|
9420 |
/// Returns a SymbolTable with all WLambda core language symbols.
|
9421 |
#[allow(clippy::cast_lossless,clippy::assign_op_pattern)]
|
9422 |
pub fn core_symbol_table() -> SymbolTable {
|
176 |
#[inline]
|
177 |
#[allow(clippy::cast_lossless)]
|
178 |
pub fn write(&mut self, bytes: &[u8]) {
|
5362 |
#[allow(clippy::cast_lossless)]
|
5363 |
pub fn f(&self) -> f64 {
|
5387 |
#[allow(clippy::cast_lossless)]
|
5388 |
pub fn i(&self) -> i64 {
|
5412 |
#[allow(clippy::cast_lossless)]
|
5413 |
pub fn byte(&self) -> u8 {
|
5438 |
#[allow(clippy::cast_lossless)]
|
5439 |
pub fn c(&self) -> char {
|
5463 |
#[allow(clippy::cast_lossless)]
|
5464 |
pub fn b(&self) -> bool {
|
300 |
// between usize and f64 is not lossless so f64::from(usize) is not implemented.
|
301 |
#[allow(clippy::cast_lossless)]
|
302 |
let angle =
|
334 |
if status == i32::from(xlib::Success) && !prop_return.is_null() {
|
335 |
#[allow(clippy::cast_lossless, clippy::cast_ptr_alignment)]
|
336 |
let ptr = prop_return as *const c_ulong;
|
450 |
unsafe {
|
451 |
#[allow(clippy::cast_lossless, clippy::cast_ptr_alignment)]
|
452 |
let pid = *prop_return.cast::<u32>();
|
503 |
if status == i32::from(xlib::Success) && !prop_return.is_null() {
|
504 |
#[allow(clippy::cast_lossless, clippy::cast_ptr_alignment)]
|
505 |
let ptr = prop_return as *const c_ulong;
|
535 |
{
|
536 |
#[allow(clippy::cast_lossless, clippy::cast_ptr_alignment)]
|
537 |
let atom_ = unsafe { *prop_return.cast::<xlib::Atom>() };
|
117 |
// Clippy thinks casting u64 to u128 is lossy
|
118 |
#[allow(clippy::cast_lossless)]
|
119 |
const fn mac(a: u64, b: u64, c: u64, carry: u64) -> (u64, u64) {
|
162 |
// Clippy is afraid that casting u64 to u128 is lossy
|
163 |
#[allow(clippy::cast_lossless)]
|
164 |
pub fn as_u128(&self) -> u128 {
|
168 |
// Clippy is afraid that casting u64 to u128 is lossy
|
169 |
#[allow(clippy::cast_lossless)]
|
170 |
pub fn as_i128(&self) -> i128 {
|
89 |
// Casting u64 to u128 is safe
|
90 |
#[allow(clippy::cast_lossless)]
|
91 |
Some((self.limb(0) as u128) | ((self.limb(1) as u128) << 64))
|
15 |
#![allow(clippy::cast_lossless, clippy::large_enum_variant)]
|
10 |
#![allow(clippy::cast_lossless)]
|
11 |
#![allow(clippy::integer_division)]
|
32 |
clippy::cast_possible_truncation,
|
33 |
clippy::cast_lossless,
|
34 |
clippy::too_many_lines
|
387 |
clippy::cast_possible_truncation,
|
388 |
clippy::cast_lossless,
|
389 |
clippy::too_many_lines
|
94 |
#![deny(clippy::correctness, clippy::complexity, clippy::perf)]
|
95 |
#![allow(clippy::pedantic, clippy::cast_lossless, clippy::unreadable_literal)]
|
96 |
#![cfg_attr(all(not(test), not(feature = "std")), no_std)]
|
371 |
fn update_exposure(&mut self, space: &Space, dt: f64) {
|
372 |
#![allow(clippy::cast_lossless)] // lossiness depends on size of usize
|
113 |
// things are often more readable this way
|
114 |
cast_lossless,
|
115 |
module_name_repetitions,
|
339 |
// things are often more readable this way
|
340 |
clippy::cast_lossless,
|
341 |
clippy::module_name_repetitions,
|
31 |
clippy::many_single_char_names, // ...it's a CPU, what do you expect?
|
32 |
clippy::cast_lossless, // Register types _won't_ be changed in the future
|
33 |
)]
|
165 |
#![allow(clippy::unused_self)]
|
166 |
#![allow(clippy::cast_lossless)]
|
167 |
#![allow(clippy::cast_possible_truncation)]
|
5 |
#![allow(clippy::cast_lossless)]
|
6 |
#![allow(clippy::needless_range_loop)]
|
40 |
clippy::cast_possible_truncation,
|
41 |
clippy::cast_lossless,
|
42 |
clippy::cast_possible_wrap,
|
14 |
clippy::cast_possible_truncation,
|
15 |
clippy::cast_lossless,
|
16 |
clippy::missing_errors_doc // TODO: add doc
|
13 |
#![allow(
|
14 |
clippy::cast_lossless,
|
15 |
clippy::cast_possible_truncation,
|
1 |
#![deny(rust_2018_idioms, missing_debug_implementations)]
|
2 |
#![allow(clippy::cast_lossless)]
|
29 |
)]
|
30 |
#![allow(clippy::cast_lossless, clippy::must_use_candidate)]
|
24 |
#![cfg_attr(feature = "cargo-clippy", allow(redundant_field_names, single_match, cast_lossless, doc_markdown, match_same_arms, unreadable_literal, new_ret_no_self))]
|
1 |
#![allow(clippy::cast_lossless)]
|
2 |
pub mod option;
|
3 |
#![warn(clippy::pedantic)]
|
4 |
#![allow(clippy::cast_lossless, clippy::struct_excessive_bools, clippy::too_many_lines)]
|
2 |
#![allow(
|
3 |
clippy::cast_lossless,
|
4 |
clippy::cast_possible_truncation,
|
23 |
#![allow(clippy::cast_lossless)]
|
1 |
#![allow(clippy::cast_lossless)]
|
2 |
use crate::{
|
275 |
#![allow(
|
276 |
clippy::cast_lossless,
|
277 |
clippy::cast_possible_truncation,
|
42 |
clippy::cast_sign_loss,
|
43 |
clippy::cast_lossless,
|
44 |
clippy::cast_possible_wrap,
|
51 |
cast_sign_loss,
|
52 |
cast_lossless,
|
53 |
cast_possible_wrap,
|
1 |
#![allow(clippy::cast_lossless)]
|
17 |
needless_borrow,
|
18 |
cast_lossless,
|
19 |
unreadable_literal,
|
13 |
clippy::module_name_repetitions,
|
14 |
clippy::cast_lossless, // TODO: Fix these. See issue #1
|
15 |
clippy::cast_sign_loss, // TODO: Fix these. See issue #1
|
69 |
#![allow(
|
70 |
clippy::cast_lossless,
|
71 |
clippy::cast_possible_truncation,
|
2 |
#![allow(
|
3 |
clippy::cast_lossless,
|
4 |
clippy::cast_possible_truncation,
|
18 |
#![allow(
|
19 |
clippy::cast_lossless,
|
20 |
clippy::cast_sign_loss,
|
1 |
#![warn(clippy::all)]
|
2 |
#![allow(clippy::range_plus_one, clippy::many_single_char_names, clippy::too_many_arguments, clippy::cast_lossless, unused_variables)]
|
4 |
#![allow(
|
5 |
clippy::cast_lossless,
|
6 |
clippy::cast_sign_loss,
|
34 |
clippy::cast_precision_loss,
|
35 |
clippy::cast_lossless,
|
36 |
clippy::cast_possible_wrap
|
5 |
#![allow(clippy::bool_comparison)]
|
6 |
#![allow(clippy::cast_lossless)]
|
7 |
#![allow(clippy::comparison_chain)]
|
2 |
#![allow(
|
3 |
clippy::cast_lossless,
|
4 |
clippy::cast_possible_truncation,
|
52 |
clippy::bool_to_int_with_if,
|
53 |
clippy::cast_lossless,
|
54 |
clippy::cast_possible_truncation,
|
21 |
#![allow(
|
22 |
clippy::cast_lossless,
|
23 |
clippy::excessive_precision,
|
17 |
#![allow(non_snake_case, clippy::cast_lossless)]
|
36 |
#![allow(
|
37 |
clippy::cast_lossless,
|
38 |
clippy::cast_possible_truncation,
|
184 |
#![allow(
|
185 |
clippy::cast_lossless,
|
186 |
clippy::derive_partial_eq_without_eq,
|
84 |
#![allow(
|
85 |
clippy::cast_lossless,
|
86 |
clippy::cast_possible_truncation,
|
100 |
clippy::needless_lifetimes,
|
101 |
clippy::cast_lossless,
|
102 |
clippy::suspicious_arithmetic_impl,
|
5 |
non_snake_case,
|
6 |
clippy::cast_lossless,
|
7 |
clippy::eq_op,
|
48 |
clippy::redundant_closure_call,// not redundant in macros
|
49 |
clippy::cast_lossless,// the sizes are part of the struct name and so won't change
|
50 |
clippy::many_single_char_names,// the variables are in different scopes
|
5 |
clippy::cast_possible_truncation,
|
6 |
clippy::cast_lossless,
|
7 |
clippy::cast_possible_wrap,
|
39 |
// (Hopefully) always manual checked
|
40 |
clippy::cast_lossless,
|
41 |
// (Hopefully) always manual checked
|
38 |
clippy::cast_sign_loss,
|
39 |
clippy::cast_lossless,
|
40 |
clippy::cast_precision_loss,
|
21 |
#![cfg_attr(not(feature = "std"), no_std)]
|
22 |
#![allow(clippy::cast_lossless)]
|
23 |
#![deny(missing_docs)]
|
1 |
#![allow(
|
2 |
clippy::cast_lossless,
|
3 |
clippy::too_many_arguments,
|
4 |
clippy::float_cmp,
|
5 |
clippy::cast_lossless,
|
6 |
clippy::too_many_lines,
|
72 |
clippy::cast_sign_loss,
|
73 |
clippy::cast_lossless,
|
74 |
clippy::cast_precision_loss,
|
72 |
clippy::cast_sign_loss,
|
73 |
clippy::cast_lossless,
|
74 |
clippy::cast_precision_loss,
|
23 |
#![allow(clippy::new_without_default)]
|
24 |
#![allow(clippy::cast_lossless)]
|
25 |
#![allow(clippy::option_map_unit_fn)]
|
172 |
#![cfg_attr(not(target_arch = "spirv"), warn(missing_debug_implementations))]
|
173 |
#![allow(clippy::verbose_bit_mask, clippy::cast_lossless)]
|
174 |
#![cfg_attr(not(feature = "std"), no_std)]
|
4 |
#![allow(
|
5 |
clippy::cast_lossless,
|
6 |
clippy::cast_possible_truncation,
|
54 |
#![allow(clippy::missing_panics_doc)]
|
55 |
#![allow(clippy::cast_lossless)]
|
56 |
#![allow(clippy::cast_possible_truncation)]
|
76 |
clippy::cast_sign_loss, // for tab/element/mod.rs:492 & 493
|
77 |
clippy::cast_lossless, // for tab/element/mod.rs:492 & 493
|
78 |
clippy::vtable_address_comparisons, // for tab/mod.rs:1415
|
6 |
non_snake_case,
|
7 |
clippy::cast_lossless,
|
8 |
clippy::eq_op,
|
6 |
non_snake_case,
|
7 |
clippy::cast_lossless,
|
8 |
clippy::eq_op,
|
6 |
non_snake_case,
|
7 |
clippy::cast_lossless,
|
8 |
clippy::eq_op,
|
29 |
#![allow(clippy::branches_sharing_code)]
|
30 |
#![allow(clippy::cast_lossless)]
|
31 |
#![allow(clippy::collapsible_else_if)]
|
12 |
clippy::float_cmp,
|
13 |
clippy::cast_lossless
|
14 |
)]
|
12 |
#![allow(
|
13 |
clippy::cast_lossless,
|
14 |
clippy::too_many_arguments,
|
12 |
#![allow(
|
13 |
clippy::cast_lossless,
|
14 |
clippy::too_many_arguments,
|
88 |
clippy::too_many_lines,
|
89 |
clippy::cast_lossless,
|
90 |
clippy::cast_possible_truncation,
|
2 |
#![allow(non_snake_case)]
|
3 |
#![allow(clippy::cast_lossless)]
|
35 |
#![allow(
|
36 |
clippy::cast_lossless,
|
37 |
clippy::cast_possible_truncation,
|
1 |
#![allow(non_snake_case)]
|
2 |
#![allow(clippy::cast_lossless)]
|
2 |
#![allow(non_snake_case)]
|
3 |
#![allow(clippy::cast_lossless)]
|
35 |
#![allow(
|
36 |
clippy::cast_lossless,
|
37 |
clippy::cast_possible_truncation,
|
1 |
#![allow(non_snake_case)]
|
2 |
#![allow(clippy::cast_lossless)]
|
41 |
#![deny(missing_debug_implementations, missing_docs)]
|
42 |
#![allow(clippy::cast_lossless)] // Not useful in this crate
|
43 |
#![cfg_attr(not(feature = "std"), no_std)]
|
28 |
#![cfg_attr(not(feature = "std"), no_std)]
|
29 |
#![allow(clippy::cast_lossless)]
|
56 |
clippy::cast_precision_loss,
|
57 |
clippy::cast_lossless
|
58 |
)]
|
14 |
clippy::cast_precision_loss,
|
15 |
clippy::cast_lossless
|
16 |
)]
|
246 |
clippy::cast_precision_loss,
|
247 |
clippy::cast_lossless
|
248 |
)]
|
69 |
clippy::cast_precision_loss,
|
70 |
clippy::cast_lossless
|
71 |
)]
|
1 |
#![recursion_limit = "128"]
|
2 |
#![allow(clippy::cast_lossless)]
|
16 |
#![allow(clippy::cast_lossless)]
|
16 |
#![allow(clippy::cast_lossless)]
|
76 |
clippy::cast_sign_loss, // for tab/element/mod.rs:492 & 493
|
77 |
clippy::cast_lossless, // for tab/element/mod.rs:492 & 493
|
78 |
clippy::vtable_address_comparisons, // for tab/mod.rs:1415
|
22 |
#![allow(
|
23 |
clippy::cast_lossless,
|
24 |
clippy::cast_possible_truncation,
|
23 |
#![allow(
|
24 |
clippy::cast_lossless,
|
25 |
clippy::cast_possible_truncation,
|
22 |
#![allow(
|
23 |
clippy::cast_lossless,
|
24 |
clippy::cast_possible_truncation,
|
22 |
#![allow(
|
23 |
clippy::cast_lossless,
|
24 |
clippy::cast_possible_truncation,
|
22 |
#![allow(
|
23 |
clippy::cast_lossless,
|
24 |
clippy::cast_possible_truncation,
|
23 |
#![allow(
|
24 |
clippy::cast_lossless,
|
25 |
clippy::cast_possible_truncation,
|
22 |
#![allow(
|
23 |
clippy::cast_lossless,
|
24 |
clippy::cast_possible_truncation,
|
22 |
#![allow(
|
23 |
clippy::cast_lossless,
|
24 |
clippy::cast_possible_truncation,
|
6 |
clippy::needless_lifetimes,
|
7 |
clippy::cast_lossless,
|
8 |
clippy::suspicious_arithmetic_impl,
|
5 |
non_snake_case,
|
6 |
clippy::cast_lossless,
|
7 |
clippy::eq_op,
|
5 |
non_snake_case,
|
6 |
clippy::cast_lossless,
|
7 |
clippy::eq_op,
|
22 |
#![allow(
|
23 |
clippy::cast_lossless,
|
24 |
clippy::cast_possible_truncation,
|
55 |
clippy::builtin_type_shadow,
|
56 |
clippy::cast_lossless,
|
57 |
clippy::cast_sign_loss,
|
1 |
#![allow(
|
2 |
clippy::cast_lossless,
|
3 |
clippy::manual_range_contains,
|
11 |
clippy::doc_markdown,
|
12 |
clippy::cast_lossless,
|
13 |
clippy::unused_self,
|
1 |
#![allow(clippy::module_inception, clippy::option_option, clippy::cast_sign_loss, clippy::cast_possible_truncation, clippy::cast_possible_wrap, clippy::cast_lossless)]
|
12 |
#![warn(unused_attributes)]
|
13 |
#![allow(bad_style, deprecated, overflowing_literals, unused_macros, clippy::cast_lossless, clippy::cast_ptr_alignment, clippy::len_without_is_empty, clippy::trivially_copy_pass_by_ref, clippy::unreadable_literal)]
|
14 |
#[doc(hidden)]
|
231 |
clippy::cast_possible_truncation,
|
232 |
clippy::cast_lossless,
|
233 |
clippy::cast_possible_wrap,
|
18 |
#![allow(clippy::useless_transmute)]
|
19 |
#![allow(clippy::cast_lossless)]
|
20 |
#![allow(non_upper_case_globals)]
|
1 |
#![allow(clippy::cast_lossless)]
|
14 |
#![allow(clippy::trivially_copy_pass_by_ref)]
|
15 |
#![allow(clippy::cast_lossless)]
|
16 |
#![allow(clippy::too_many_arguments)]
|
80 |
#![allow(clippy::cast_lossless)]
|
81 |
#![allow(clippy::unreadable_literal)]
|
12 |
#![allow(dead_code)]
|
13 |
#![allow(clippy::cast_lossless)]
|
14 |
#![allow(clippy::unreadable_literal)]
|
1 |
#![allow(clippy::cast_lossless)]
|
2 |
use std::fmt;
|
3 |
#![allow(clippy::module_name_repetitions)]
|
4 |
#![allow(clippy::cast_lossless)]
|
5 |
//! This library can read flow file, as used in Pokemon Super Mystery Dungeon.
|
175 |
clippy::box_default,
|
176 |
clippy::cast_lossless,
|
177 |
clippy::doc_markdown,
|
67 |
#![allow(
|
68 |
clippy::cast_lossless,
|
69 |
clippy::doc_markdown,
|
228 |
#![allow(clippy::range_plus_one)] // edge case: I think 1..x+1 is clearer than 1..=x
|
229 |
#![allow(clippy::cast_lossless)] // improves portability when values are limited by the OS anyway
|
230 |
// feel free to disable more lints
|
1 |
#![allow(
|
2 |
clippy::cast_lossless,
|
3 |
clippy::cast_possible_truncation,
|
96 |
#![allow(
|
97 |
clippy::cast_lossless,
|
98 |
clippy::cast_possible_truncation,
|
7 |
#![allow(clippy::default_trait_access)]
|
8 |
#![allow(clippy::cast_lossless)]
|
9 |
#![allow(clippy::trivially_copy_pass_by_ref)]
|
7 |
#![allow(clippy::default_trait_access)]
|
8 |
#![allow(clippy::cast_lossless)]
|
9 |
#![allow(clippy::trivially_copy_pass_by_ref)]
|
7 |
#![allow(clippy::default_trait_access)]
|
8 |
#![allow(clippy::cast_lossless)]
|
9 |
#![allow(clippy::trivially_copy_pass_by_ref)]
|
7 |
#![allow(clippy::default_trait_access)]
|
8 |
#![allow(clippy::cast_lossless)]
|
9 |
#![allow(clippy::trivially_copy_pass_by_ref)]
|
7 |
#![allow(clippy::default_trait_access)]
|
8 |
#![allow(clippy::cast_lossless)]
|
9 |
#![allow(clippy::trivially_copy_pass_by_ref)]
|
7 |
#![allow(clippy::default_trait_access)]
|
8 |
#![allow(clippy::cast_lossless)]
|
9 |
#![allow(clippy::trivially_copy_pass_by_ref)]
|
7 |
#![allow(clippy::default_trait_access)]
|
8 |
#![allow(clippy::cast_lossless)]
|
9 |
#![allow(clippy::trivially_copy_pass_by_ref)]
|
7 |
#![allow(clippy::default_trait_access)]
|
8 |
#![allow(clippy::cast_lossless)]
|
9 |
#![allow(clippy::trivially_copy_pass_by_ref)]
|
7 |
#![allow(clippy::default_trait_access)]
|
8 |
#![allow(clippy::cast_lossless)]
|
9 |
#![allow(clippy::trivially_copy_pass_by_ref)]
|
7 |
#![allow(clippy::default_trait_access)]
|
8 |
#![allow(clippy::cast_lossless)]
|
9 |
#![allow(clippy::trivially_copy_pass_by_ref)]
|
7 |
#![allow(clippy::default_trait_access)]
|
8 |
#![allow(clippy::cast_lossless)]
|
9 |
#![allow(clippy::trivially_copy_pass_by_ref)]
|
7 |
#![allow(clippy::default_trait_access)]
|
8 |
#![allow(clippy::cast_lossless)]
|
9 |
#![allow(clippy::trivially_copy_pass_by_ref)]
|
7 |
#![allow(clippy::default_trait_access)]
|
8 |
#![allow(clippy::cast_lossless)]
|
9 |
#![allow(clippy::trivially_copy_pass_by_ref)]
|
7 |
#![allow(clippy::default_trait_access)]
|
8 |
#![allow(clippy::cast_lossless)]
|
9 |
#![allow(clippy::trivially_copy_pass_by_ref)]
|
7 |
#![allow(clippy::default_trait_access)]
|
8 |
#![allow(clippy::cast_lossless)]
|
9 |
#![allow(clippy::trivially_copy_pass_by_ref)]
|
7 |
#![allow(clippy::default_trait_access)]
|
8 |
#![allow(clippy::cast_lossless)]
|
9 |
#![allow(clippy::trivially_copy_pass_by_ref)]
|
7 |
#![allow(clippy::default_trait_access)]
|
8 |
#![allow(clippy::cast_lossless)]
|
9 |
#![allow(clippy::trivially_copy_pass_by_ref)]
|
7 |
#![allow(clippy::default_trait_access)]
|
8 |
#![allow(clippy::cast_lossless)]
|
9 |
#![allow(clippy::trivially_copy_pass_by_ref)]
|
7 |
#![allow(clippy::default_trait_access)]
|
8 |
#![allow(clippy::cast_lossless)]
|
9 |
#![allow(clippy::trivially_copy_pass_by_ref)]
|
7 |
#![allow(clippy::default_trait_access)]
|
8 |
#![allow(clippy::cast_lossless)]
|
9 |
#![allow(clippy::trivially_copy_pass_by_ref)]
|
2 |
#![allow(
|
3 |
clippy::cast_lossless,
|
4 |
clippy::cast_possible_truncation,
|
2 |
#![allow(
|
3 |
clippy::cast_lossless,
|
4 |
clippy::cast_possible_truncation,
|
1 |
#![allow(clippy::cast_lossless)]
|
10 |
#![deny(bare_trait_objects)]
|
11 |
#![allow(clippy::cast_lossless)]
|
12 |
#![allow(clippy::cast_ptr_alignment)]
|
10 |
#![deny(bare_trait_objects)]
|
11 |
#![allow(clippy::cast_lossless)]
|
12 |
#![allow(clippy::cast_ptr_alignment)]
|
37 |
#![deny(bare_trait_objects)]
|
38 |
#![allow(clippy::cast_lossless)]
|
39 |
#![allow(clippy::cast_ptr_alignment)]
|
22 |
#![cfg_attr(feature = "cargo-clippy", allow(redundant_field_names, single_match, cast_lossless, doc_markdown, match_same_arms, unreadable_literal))]
|
2 |
clippy::cast_precision_loss,
|
3 |
clippy::cast_lossless,
|
4 |
clippy::cast_possible_truncation,
|
49 |
#![allow(non_upper_case_globals)]
|
50 |
#![allow(clippy::cast_lossless)]
|
51 |
#![allow(clippy::cast_ptr_alignment)]
|
1 |
#![allow(clippy::cast_lossless, clippy::enum_glob_use)]
|
72 |
// same as above
|
73 |
#![allow(clippy::cast_lossless)]
|
74 |
// Annoying and wrong, RefPack is a compression scheme.
|
8 |
#![allow(clippy::default_trait_access)]
|
9 |
#![allow(clippy::cast_lossless)]
|
10 |
#![allow(clippy::trivially_copy_pass_by_ref)]
|
10 |
#![allow(clippy::default_trait_access)]
|
11 |
#![allow(clippy::cast_lossless)]
|
12 |
#![allow(clippy::trivially_copy_pass_by_ref)]
|
10 |
#![allow(clippy::default_trait_access)]
|
11 |
#![allow(clippy::cast_lossless)]
|
12 |
#![allow(clippy::trivially_copy_pass_by_ref)]
|
13 |
#![allow(clippy::default_trait_access)]
|
14 |
#![allow(clippy::cast_lossless)]
|
15 |
#![allow(clippy::trivially_copy_pass_by_ref)]
|
52 |
#![deny(clippy::pedantic)]
|
53 |
#![allow(clippy::cast_lossless, clippy::cast_possible_truncation)]
|
11 |
clippy::too_many_arguments,
|
12 |
clippy::cast_lossless
|
13 |
)]
|
3 |
#![allow(clippy::cast_lossless, clippy::cast_precision_loss)]
|
51 |
#![cfg_attr(feature = "cargo-clippy", allow(cast_lossless, transmute_ptr_to_ref))]
|
21 |
// Prevent warning when casting u32 as i64
|
22 |
#![allow(clippy::cast_lossless)]
|
23 |
#![allow(dead_code)]
|
1 |
// Prevent warning when casting u32 as i64
|
2 |
#![allow(clippy::cast_lossless)]
|
3 |
#![allow(dead_code)]
|
21 |
// Prevent warning when casting u32 as i64
|
22 |
#![allow(clippy::cast_lossless)]
|
23 |
#![allow(dead_code)]
|
23 |
#![feature(specialization)]
|
24 |
#![allow(clippy::cast_lossless)]
|
25 |
#![feature(fn_traits)]
|
6 |
//! [new]: https://gmplib.org/list-archives/gmp-devel/2019-October/005590.html
|
7 |
#![allow(dead_code, clippy::cast_possible_truncation, clippy::cast_lossless)]
|
134 |
#![allow(
|
135 |
clippy::cast_lossless,
|
136 |
clippy::derive_partial_eq_without_eq,
|
1 |
#![allow(clippy::cast_lossless)]
|
2 |
use crate::{interval::Interval, ConvertError};
|
92 |
clippy::doc_markdown,
|
93 |
clippy::cast_lossless,
|
94 |
clippy::many_single_char_names
|
148 |
#![allow(
|
149 |
clippy::cast_lossless,
|
150 |
clippy::cast_possible_truncation,
|
1 |
#![allow(clippy::cast_lossless, clippy::cognitive_complexity, clippy::new_without_default)]
|
1 |
#![allow(clippy::cast_lossless, clippy::transmute_ptr_to_ref)]
|
85 |
#![allow(
|
86 |
clippy::cast_lossless,
|
87 |
clippy::cast_possible_truncation,
|
22 |
#![allow(
|
23 |
clippy::cast_lossless,
|
24 |
clippy::cast_possible_truncation,
|
22 |
clippy::approx_constant,
|
23 |
clippy::cast_lossless,
|
24 |
clippy::float_cmp,
|
23 |
#![allow(
|
24 |
clippy::cast_lossless,
|
25 |
clippy::cast_possible_truncation,
|
22 |
#![allow(
|
23 |
clippy::cast_lossless,
|
24 |
clippy::cast_possible_truncation,
|
36 |
allow(
|
37 |
cast_lossless,
|
38 |
cyclomatic_complexity,
|
12 |
feature = "cargo-clippy",
|
13 |
allow(cast_lossless, many_single_char_names, unreadable_literal,)
|
14 |
)]
|
59 |
#![allow(
|
60 |
clippy::cast_lossless,
|
61 |
clippy::cast_possible_truncation,
|
22 |
#![allow(
|
23 |
clippy::cast_lossless,
|
24 |
clippy::cast_possible_truncation,
|
23 |
clippy::excessive_precision,
|
24 |
clippy::cast_lossless,
|
25 |
clippy::float_cmp,
|
24 |
#![allow(
|
25 |
clippy::cast_lossless,
|
26 |
clippy::cast_possible_truncation,
|
22 |
#![allow(
|
23 |
clippy::cast_lossless,
|
24 |
clippy::cast_possible_truncation,
|
91 |
#![allow(
|
92 |
clippy::cast_lossless,
|
93 |
clippy::cast_possible_truncation,
|
49 |
#![crate_type = "lib"]
|
50 |
#![allow(clippy::cast_lossless, clippy::transmute_ptr_to_ref)]
|
90 |
// https://github.com/rust-lang-nursery/rust-clippy/issues/2267
|
91 |
#![allow(clippy::cast_lossless, clippy::decimal_literal_representation)]
|
69 |
#![allow(
|
70 |
clippy::cast_lossless,
|
71 |
clippy::cast_possible_truncation,
|
76 |
#![allow(
|
77 |
clippy::cast_lossless,
|
78 |
clippy::cast_possible_truncation,
|
118 |
// things are often more readable this way
|
119 |
cast_lossless,
|
120 |
module_name_repetitions,
|
1 |
#![allow(
|
2 |
clippy::cast_lossless,
|
3 |
clippy::cast_possible_truncation,
|
346 |
// things are often more readable this way
|
347 |
clippy::cast_lossless,
|
348 |
clippy::module_name_repetitions,
|
1 |
#![allow(
|
2 |
clippy::cast_lossless,
|
3 |
clippy::cast_possible_truncation,
|
337 |
// things are often more readable this way
|
338 |
cast_lossless,
|
339 |
shadow_reuse,
|
347 |
// things are often more readable this way
|
348 |
clippy::cast_lossless,
|
349 |
clippy::module_name_repetitions,
|
309 |
// things are often more readable this way
|
310 |
cast_lossless,
|
311 |
module_name_repetitions,
|
322 |
// things are often more readable this way
|
323 |
cast_lossless,
|
324 |
module_name_repetitions,
|
339 |
// things are often more readable this way
|
340 |
clippy::cast_lossless,
|
341 |
clippy::module_name_repetitions,
|
128 |
// things are often more readable this way
|
129 |
clippy::cast_lossless,
|
130 |
clippy::checked_conversions,
|
1 |
#![allow(
|
2 |
clippy::cast_lossless,
|
3 |
clippy::cast_possible_wrap,
|
77 |
// things are often more readable this way
|
78 |
clippy::cast_lossless,
|
79 |
clippy::if_not_else,
|
1 |
#![allow(
|
2 |
clippy::cast_lossless,
|
3 |
clippy::cast_possible_wrap,
|
70 |
clippy::doc_markdown,
|
71 |
clippy::cast_lossless,
|
72 |
// Covered by other lints
|
28 |
// it's usually not needed.
|
29 |
#![allow(clippy::cast_possible_truncation, clippy::cast_lossless)]
|
2 |
#![allow(clippy::unreadable_literal)]
|
3 |
#![allow(clippy::cast_lossless)]
|
4 |
#![allow(clippy::many_single_char_names)]
|
6 |
#![allow(clippy::approx_constant)]
|
7 |
#![allow(clippy::cast_lossless)]
|
8 |
#![allow(clippy::float_cmp)]
|
3 |
#![allow(clippy::cast_lossless)]
|
3 |
#![allow(clippy::cast_lossless)]
|
1 |
#![cfg_attr(not(feature = "std"), no_std)]
|
2 |
#![allow(clippy::cast_lossless)]
|
3 |
#![allow(clippy::float_cmp)]
|
7 |
clippy::let_and_return,
|
8 |
clippy::cast_lossless,
|
9 |
clippy::redundant_closure,
|
16 |
clippy::let_and_return,
|
17 |
clippy::cast_lossless,
|
18 |
clippy::redundant_closure,
|
12 |
clippy::cast_sign_loss,
|
13 |
clippy::cast_lossless,
|
14 |
clippy::unreadable_literal,
|
7 |
#![allow(
|
8 |
clippy::cast_lossless,
|
9 |
clippy::default_trait_access,
|
3 |
clippy::too_many_arguments,
|
4 |
clippy::cast_lossless,
|
5 |
clippy::many_single_char_names
|
20 |
#![allow(clippy::cast_lossless)]
|
21 |
#![allow(clippy::unreadable_literal)]
|
8 |
//@todo remove eventually
|
9 |
#![allow(clippy::cast_lossless)]
|
10 |
//@todo remove eventually
|
7 |
#![recursion_limit = "1024"]
|
8 |
#![allow(clippy::cast_lossless, clippy::unnecessary_wraps)]
|
257 |
clippy::bool_to_int_with_if,
|
258 |
clippy::cast_lossless,
|
259 |
clippy::cast_possible_truncation,
|
66 |
#![cfg_attr(test, allow(dead_code))]
|
67 |
#![allow(clippy::cast_lossless)]
|
68 |
#![allow(clippy::unreadable_literal)]
|
11 |
#![allow(dead_code)]
|
12 |
#![allow(clippy::cast_lossless)]
|
13 |
#![allow(clippy::unreadable_literal)]
|
2 |
clippy::blocks_in_if_conditions,
|
3 |
clippy::cast_lossless,
|
4 |
clippy::cast_possible_truncation,
|
2 |
clippy::blocks_in_if_conditions,
|
3 |
clippy::cast_lossless,
|
4 |
clippy::cast_possible_truncation,
|
2 |
clippy::blocks_in_if_conditions,
|
3 |
clippy::cast_lossless,
|
4 |
clippy::cast_possible_truncation,
|
2 |
clippy::blocks_in_if_conditions,
|
3 |
clippy::cast_lossless,
|
4 |
clippy::cast_possible_truncation,
|
1 |
#![allow(clippy::option_map_unit_fn)]
|
2 |
#![allow(clippy::cast_lossless)]
|
3 |
#![allow(unused_imports)]
|
9 |
#![warn(missing_docs)]
|
10 |
#![allow(clippy::cast_lossless)]
|
11 |
#![allow(clippy::mixed_case_hex_literals)]
|
12 |
// as is fine, clippy is silly
|
13 |
#![allow(clippy::cast_lossless)]
|
14 |
// Not actually going to be a published crate, useless to add
|
33 |
#![allow(
|
34 |
clippy::cast_lossless,
|
35 |
clippy::cast_possible_truncation,
|
2 |
#![allow(
|
3 |
clippy::cast_lossless,
|
4 |
clippy::cast_possible_truncation,
|
2 |
#![allow(
|
3 |
clippy::cast_lossless,
|
4 |
clippy::cast_possible_truncation,
|
12 |
clippy::bool_to_int_with_if,
|
13 |
clippy::cast_lossless,
|
14 |
clippy::cast_possible_truncation,
|
38 |
clippy::cast_sign_loss,
|
39 |
clippy::cast_lossless,
|
40 |
clippy::cast_possible_truncation,
|
217 |
clippy::cast_possible_truncation,
|
218 |
clippy::cast_lossless,
|
219 |
clippy::cast_possible_wrap,
|
10 |
#![deny(bare_trait_objects)]
|
11 |
#![allow(clippy::cast_lossless)]
|
12 |
#![allow(clippy::cast_ptr_alignment)]
|
9 |
mod inner {
|
10 |
#![allow(clippy::cast_lossless, clippy::mutex_atomic)]
|
11 |
extern crate clap;
|
31 |
clippy::cast_possible_wrap,
|
32 |
clippy::cast_lossless,
|
33 |
clippy::verbose_bit_mask,
|
2 |
#![allow(clippy::cast_precision_loss)]
|
3 |
#![allow(clippy::cast_lossless)]
|
4 |
#![allow(clippy::too_many_lines)]
|
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};
|
13 |
#![allow(clippy::useless_transmute)]
|
14 |
#![allow(clippy::cast_lossless)]
|
15 |
#![allow(clippy::trivially_copy_pass_by_ref)]
|
18 |
clippy::boxed_local,
|
19 |
clippy::cast_lossless,
|
20 |
clippy::collapsible_if,
|
31 |
#![allow(clippy::module_name_repetitions)]
|
32 |
#![allow(clippy::cast_lossless)]
|
33 |
#![allow(clippy::missing_errors_doc)]
|