96 |
#[must_use]
|
97 |
#[allow(clippy::missing_const_for_fn, clippy::as_conversions)]
|
98 |
pub unsafe fn from_raw(ptr: *const T) -> Self {
|
59 |
let acceleration_structures = [self.raw];
|
60 |
#[allow(clippy::as_conversions)]
|
61 |
self.context
|
558 |
) {
|
559 |
#[allow(clippy::as_conversions)]
|
560 |
let build_range_infos = build_range_infos
|
812 |
/// Sets the viewport and the scissor rectangle.
|
813 |
#[allow(clippy::as_conversions)]
|
814 |
#[cfg_attr(feature = "profiling", profiling::function)]
|
1441 |
#[allow(clippy::as_conversions)]
|
1442 |
context.device.cmd_push_constants(
|
85 |
) -> Result<()> {
|
86 |
#[allow(clippy::as_conversions)]
|
87 |
let build_range_infos = build_range_infos
|
214 |
#[allow(clippy::as_conversions)]
|
215 |
let compute_queues = queues[0]
|
233 |
#[allow(clippy::as_conversions)]
|
234 |
let graphics_queues = queues[1]
|
252 |
#[allow(clippy::as_conversions)]
|
253 |
let transfer_queues = queues[2]
|
909 |
) -> Result<()> {
|
910 |
#[allow(clippy::as_conversions)]
|
911 |
self.context
|
941 |
) -> Result<()> {
|
942 |
#[allow(clippy::as_conversions)]
|
943 |
self.context
|
35 |
/// If this mr is being used in RDMA ops, the thread may be blocked
|
36 |
#[allow(clippy::as_conversions)]
|
37 |
#[inline]
|
44 |
/// Return `None` if this mr is being used in RDMA ops without blocking thread
|
45 |
#[allow(clippy::as_conversions)]
|
46 |
#[inline]
|
59 |
#[inline]
|
60 |
#[allow(clippy::as_conversions)]
|
61 |
fn as_ptr_unchecked(&self) -> *const u8 {
|
68 |
#[inline]
|
69 |
#[allow(clippy::as_conversions)]
|
70 |
fn as_slice(&self) -> MappedRwLockReadGuard<&[u8]> {
|
79 |
/// Return `None` if this mr is being used in RDMA ops without blocking thread
|
80 |
#[allow(clippy::as_conversions)]
|
81 |
#[inline]
|
24 |
impl MrAccess for RawMemoryRegion {
|
25 |
#[allow(clippy::as_conversions)]
|
26 |
fn addr(&self) -> usize {
|
90 |
impl Debug for RawMemoryRegion {
|
91 |
#[allow(clippy::as_conversions)]
|
92 |
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
80 |
/// Create a new `AccessPDKey`
|
81 |
#[allow(clippy::as_conversions)]
|
82 |
pub(crate) fn new(pd: &Arc<ProtectionDomain>, access: ibv_access_flags) -> Self {
|
175 |
/// Initialize it before using to make it safe.
|
176 |
#[allow(clippy::as_conversions)]
|
177 |
pub(crate) unsafe fn alloc(
|
187 |
/// Allocate a `LocalMr` according to the `layout`
|
188 |
#[allow(clippy::as_conversions)]
|
189 |
pub(crate) fn alloc_zeroed(
|
23 |
/// The threshold of allocation
|
24 |
#[allow(clippy::as_conversions)]
|
25 |
const STACK_BUF_SIZE: usize = libc::PATH_MAX as usize; // 4096
|
431 |
#[allow(
|
432 |
clippy::as_conversions,
|
433 |
clippy::indexing_slicing,
|
372 |
if self.buckets.is_empty() {
|
373 |
#[allow(clippy::as_conversions)]
|
374 |
self.doc_count.map(|v| v as f64)
|
54 |
#[allow(clippy::as_conversions, clippy::unwrap_in_result)]
|
55 |
fn load_diff(
|
162 |
pub fn usb_info(&self) -> UsbInfo {
|
163 |
#[allow(clippy::as_conversions)]
|
164 |
UsbInfo {
|
242 |
// providing immutable access.
|
243 |
#[allow(clippy::as_conversions)]
|
244 |
let data_ptr = Arc::as_ptr(&progress_handler) as *mut c_void;
|
276 |
let cancel_handler = Arc::new(handler);
|
277 |
#[allow(clippy::as_conversions)]
|
278 |
let handler_ptr = Arc::as_ptr(&cancel_handler) as *mut c_void;
|
159 |
// Casting a *const pointer to *mut is still unstable
|
160 |
#[allow(clippy::as_conversions)]
|
161 |
libc::free((data as *mut i8).cast())
|
267 |
/// Get the size in bytes as a [`u64`].
|
268 |
#[allow(clippy::as_conversions)]
|
269 |
#[must_use]
|
499 |
/// Get the entry size in bytes as a [`u64`].
|
500 |
#[allow(clippy::as_conversions)]
|
501 |
#[must_use]
|
176 |
/// Negated [`P::SLOW_LIMIT`](Params::SLOW_LIMIT).
|
177 |
#[allow(clippy::as_conversions)]
|
178 |
pub const SLOW_LIMIT_NEG: i32 = -(P::SLOW_LIMIT as i32);
|
81 |
if let Some(creation_date) = self.metainfo.creation_date {
|
82 |
#[allow(clippy::as_conversions)]
|
83 |
table.row(
|
83 |
#[allow(clippy::as_conversions)]
|
84 |
fn get_handle(handle_id: STD_HANDLE) -> io::Result<RawHandle> {
|
170 |
#[allow(clippy::as_conversions)]
|
171 |
fn write_u16s(handle: RawHandle, data: &[u16]) -> io::Result<usize> {
|
258 |
#[allow(clippy::as_conversions)]
|
259 |
fn read_u16s(handle: RawHandle, buf: &mut [u16]) -> io::Result<usize> {
|
66 |
// NOTE 0..64 will always fit into an usize but we can't use .into() because const context
|
67 |
#[allow(clippy::as_conversions)]
|
68 |
{ self.0.count_ones() as usize }
|
45 |
/// `into_u8` converts a `SlotState` to `u8`.
|
46 |
#[allow(clippy::as_conversions)]
|
47 |
const fn into_u8(self) -> u8 {
|
28 |
/// `new` creates the `value` on heap and returns its `AtomicPtr`.
|
29 |
#[allow(clippy::as_conversions)]
|
30 |
pub fn new(value: T) -> Self {
|
101 |
/// `from_raw` creates a `SharedPtr` from a raw pointer.
|
102 |
#[allow(clippy::as_conversions)]
|
103 |
pub fn from_raw(raw: *const T) -> Self {
|
144 |
/// 3. the lower 2 bits
|
145 |
#[allow(clippy::as_conversions)]
|
146 |
pub fn decompose(self) -> (u8, *const T, u8) {
|
159 |
/// `as_mut_raw` extracts the mutable raw pointer.
|
160 |
#[allow(clippy::as_conversions)]
|
161 |
pub fn as_mut_raw(self) -> *mut T {
|
773 |
/// Take the average of the trace of all plaquettes
|
774 |
#[allow(clippy::as_conversions)] // no try into for f64
|
775 |
pub fn average_trace_plaquette<const D: usize>(
|
1262 |
/// ```
|
1263 |
#[allow(clippy::as_conversions)] // no try into for f64
|
1264 |
#[inline]
|
718 |
/// This number is needed for the computation of exponential matrix
|
719 |
#[allow(clippy::as_conversions)] // no try into for f64
|
720 |
pub fn factorial_size_for_exp() -> usize {
|
749 |
/// compile time evaluation of all 34 factorial numbers
|
750 |
#[allow(clippy::as_conversions)] // constant function cant use try into
|
751 |
pub const fn new() -> Self {
|
830 |
#[inline]
|
831 |
#[allow(clippy::as_conversions)] // no try into for f64
|
832 |
pub fn su3_exp_i(su3_adj: Su3Adjoint) -> CMatrix3 {
|
882 |
#[inline]
|
883 |
#[allow(clippy::as_conversions)] // no try into for f64
|
884 |
pub fn matrix_su3_exp_i(matrix: CMatrix3) -> CMatrix3 {
|
914 |
#[inline]
|
915 |
#[allow(clippy::as_conversions)] // no try into for f64
|
916 |
pub fn su3_exp_r(su3_adj: Su3Adjoint) -> CMatrix3 {
|
36 |
/// ```
|
37 |
#[allow(clippy::as_conversions)] // constant function cant use try into
|
38 |
pub const fn factorial(n: usize) -> FactorialNumber {
|
39 |
#[allow(clippy::cast_possible_truncation, clippy::as_conversions)]
|
40 |
pub fn cursor_position(position: &Position) {
|
45 |
/// `into_u8` converts a `SlotState` to `u8`.
|
46 |
#[allow(clippy::as_conversions)]
|
47 |
const fn into_u8(self) -> u8 {
|
28 |
/// `new` creates the `value` on heap and returns its `AtomicPtr`.
|
29 |
#[allow(clippy::as_conversions)]
|
30 |
pub fn new(value: T) -> Self {
|
101 |
/// `from_raw` creates a `SharedPtr` from a raw pointer.
|
102 |
#[allow(clippy::as_conversions)]
|
103 |
pub fn from_raw(raw: *const T) -> Self {
|
143 |
/// 3. the lower 2 bits
|
144 |
#[allow(clippy::as_conversions)]
|
145 |
pub fn decompose(self) -> (u8, *const T, u8) {
|
158 |
/// `as_mut_raw` extracts the mutable raw pointer.
|
159 |
#[allow(clippy::as_conversions)]
|
160 |
pub fn as_mut_raw(self) -> *mut T {
|
493 |
// Infallible
|
494 |
clippy::as_conversions
|
495 |
)]
|
37 |
fn try_from(inner: ChildStdin) -> Self {
|
38 |
#[allow(unsafe_code, clippy::as_conversions)] // Required to make ChildStdin non-blocking.
|
39 |
if unsafe {
|
80 |
fn try_from(inner: ChildStdout) -> Self {
|
81 |
#[allow(unsafe_code, clippy::as_conversions)] // Required to make ChildStdout non-blocking.
|
82 |
if unsafe {
|
119 |
fn try_from(inner: ChildStderr) -> Self {
|
120 |
#[allow(unsafe_code, clippy::as_conversions)] // Required to make ChildStderr non-blocking.
|
121 |
if unsafe {
|
545 |
#[allow(clippy::as_conversions)]
|
546 |
fn parse_unsigned<R: Read>(r: &mut R, size: u64) -> Result<u64> {
|
559 |
#[allow(clippy::as_conversions)]
|
560 |
fn parse_signed<R: Read>(r: &mut R, size: u64) -> Result<i64> {
|
590 |
#[allow(clippy::as_conversions)]
|
591 |
fn parse_date<R: Read>(r: &mut R, size: u64) -> Result<i64> {
|
639 |
.map(|species| {
|
640 |
#[allow(clippy::cast_precision_loss, clippy::as_conversions)]
|
641 |
let species_size = species.population.members.len() as f64;
|
808 |
// all values in this calculation are positive
|
809 |
#[allow(clippy::cast_sign_loss, clippy::as_conversions)]
|
810 |
let offspring =
|
22 |
/// For arrays of the same size we can simply use the hamming distance.
|
23 |
#[allow(clippy::cast_precision_loss, clippy::float_arithmetic, clippy::as_conversions)]
|
24 |
fn distance(&self, other: &Self) -> f32 {
|
28 |
#[allow(clippy::arithmetic_side_effects)]
|
29 |
#[allow(clippy::as_conversions)]
|
30 |
match (left.next(), right.next()) {
|
65 |
#[allow(clippy::as_conversions)]
|
66 |
let max_length = left_chars.max(right_chars) as f32;
|
26 |
fn distance(&self, other: &Self) -> f32 {
|
27 |
#[allow(clippy::as_conversions)]
|
28 |
let size_difference = self.len().abs_diff(other.len()) as f32;
|
34 |
#[allow(clippy::as_conversions)]
|
35 |
let max_size = self.len().max(other.len()) as f32;
|
15 |
// This is intended and may be replaced by a safer way in the future.
|
16 |
#[allow(clippy::cast_possible_truncation, clippy::as_conversions)]
|
17 |
fn mutations_by_rate(genes: usize, rate: f64) -> usize {
|
79 |
// this is intended
|
80 |
#[allow(clippy::cast_possible_truncation, clippy::as_conversions)]
|
81 |
let passing_members = (population_size as f64 * self.proportion_to_keep) as usize; // "as usize" automatically rounds down for us
|
52 |
#[allow(clippy::as_conversions)]
|
53 |
impl<P> fmt::Debug for FnWrapper<P> {
|
111 |
// Who has a 128bit pointer size computer?
|
112 |
clippy::as_conversions
|
113 |
)]
|
97 |
pub fn write(&mut self) -> impl Write + '_ {
|
98 |
#[allow(clippy::as_conversions)]
|
99 |
match self {
|
151 |
self.stream.write_u32::<LittleEndian>(
|
152 |
#[allow(clippy::as_conversions)]
|
153 |
// explicit truncation to u32, since we have no better solution
|
341 |
#[allow(clippy::as_conversions)]
|
342 |
let uncompressed_size = io::copy(
|
70 |
#[allow(clippy::as_conversions)]
|
71 |
pub fn run_command(sub_matches: &ArgMatches, config: &PlowConfig) -> Box<dyn Feedback + 'static> {
|
31 |
#[allow(clippy::as_conversions)]
|
32 |
pub fn run_command(sub_matches: &ArgMatches, config: &PlowConfig) -> Box<dyn Feedback + 'static> {
|
54 |
#[allow(clippy::as_conversions)]
|
55 |
pub fn run_command(sub_matches: &ArgMatches, config: &PlowConfig) -> Box<dyn Feedback + 'static> {
|
50 |
#[allow(clippy::as_conversions)]
|
51 |
pub fn run_command(sub_matches: &ArgMatches, config: &PlowConfig) -> Box<dyn Feedback + 'static> {
|
39 |
#[allow(clippy::as_conversions)]
|
40 |
pub fn run_command(sub_matches: &ArgMatches, config: &PlowConfig) -> Box<dyn Feedback + 'static> {
|
32 |
#[allow(clippy::as_conversions)]
|
33 |
pub fn run_command(sub_matches: &ArgMatches, config: &PlowConfig) -> Box<dyn Feedback + 'static> {
|
200 |
// https://github.com/rust-lang/dyn-upcasting-coercion-initiative
|
201 |
#[allow(clippy::as_conversions)]
|
202 |
fn required_base_lints() -> Vec<PlowLint> {
|
212 |
#[allow(clippy::as_conversions)]
|
213 |
fn required_field_manifest_lints() -> Vec<Box<dyn Lint + Send + Sync>> {
|
236 |
#[allow(clippy::as_conversions)]
|
237 |
fn required_field_manifest_sub_lints() -> Vec<Box<dyn Lint + Send + Sync>> {
|
246 |
#[allow(clippy::as_conversions)]
|
247 |
fn required_style_lints() -> Vec<Box<dyn Lint + Send + Sync>> {
|
11 |
/// the returned value will be `\u{0xd7ff}`.
|
12 |
#[allow(clippy::as_conversions, clippy::integer_arithmetic, clippy::use_self)]
|
13 |
fn predecessor(&self) -> Option<Self> {
|
33 |
/// the returned value will be `\u{0xe000}`.
|
34 |
#[allow(clippy::as_conversions, clippy::integer_arithmetic, clippy::use_self)]
|
35 |
fn successor(&self) -> Option<Self> {
|
74 |
#[must_use]
|
75 |
#[allow(clippy::as_conversions)]
|
76 |
fn shares_neighbour_with(&self, other: &Self) -> bool {
|
94 |
#[allow(clippy::integer_arithmetic, clippy::as_conversions)]
|
95 |
fn next(&self) -> Option<Self::Output> {
|
41 |
#[must_use]
|
42 |
#[allow(clippy::shadow_reuse, clippy::integer_arithmetic, clippy::as_conversions)]
|
43 |
fn shares_neighbour_with(&self, other: &Self) -> bool {
|
41 |
#[must_use]
|
42 |
#[allow(clippy::shadow_reuse, clippy::integer_arithmetic, clippy::as_conversions)]
|
43 |
fn shares_neighbour_with(&self, other: &Self) -> bool {
|
41 |
#[must_use]
|
42 |
#[allow(clippy::shadow_reuse, clippy::integer_arithmetic, clippy::as_conversions)]
|
43 |
fn shares_neighbour_with(&self, other: &Self) -> bool {
|
41 |
#[must_use]
|
42 |
#[allow(clippy::shadow_reuse, clippy::integer_arithmetic, clippy::as_conversions)]
|
43 |
fn shares_neighbour_with(&self, other: &Self) -> bool {
|
41 |
#[must_use]
|
42 |
#[allow(clippy::shadow_reuse, clippy::integer_arithmetic, clippy::as_conversions)]
|
43 |
fn shares_neighbour_with(&self, other: &Self) -> bool {
|
41 |
#[must_use]
|
42 |
#[allow(clippy::shadow_reuse, clippy::integer_arithmetic, clippy::as_conversions)]
|
43 |
fn shares_neighbour_with(&self, other: &Self) -> bool {
|
2 |
// here, unfortunately
|
3 |
#![allow(clippy::as_conversions)]
|
641 |
// write it without some explicit impls
|
642 |
#[allow(clippy::as_conversions)]
|
643 |
two_factor_provider: two_factor_provider.map(|ty| ty as u32),
|
113 |
impl Mtu {
|
114 |
#[allow(clippy::as_conversions)]
|
115 |
fn from_c_uint(val: c_uint) -> Self {
|
121 |
#[allow(clippy::as_conversions)]
|
122 |
fn to_u32(self) -> u32 {
|
68 |
fn to_c_uint(self) -> c_uint {
|
69 |
#[allow(clippy::as_conversions)]
|
70 |
u32_as_c_uint(self as u32)
|
317 |
fn to_c_uint(self) -> c_uint {
|
318 |
#[allow(clippy::as_conversions)]
|
319 |
u32_as_c_uint(self as u32)
|
475 |
fn to_c_uint(self) -> c_uint {
|
476 |
#[allow(clippy::as_conversions)]
|
477 |
u32_as_c_uint(self as u32)
|
126 |
fn to_c_uint(self) -> c_uint {
|
127 |
#[allow(clippy::as_conversions)]
|
128 |
u32_as_c_uint(self as u32)
|
131 |
#[allow(clippy::as_conversions)]
|
132 |
fn from_c_uint(val: c_uint) -> Self {
|
145 |
fn to_c_uint(self) -> c_uint {
|
146 |
#[allow(clippy::as_conversions)]
|
147 |
u32_as_c_uint(self as u32)
|
26 |
/// Treats given bytes as unicode scalar values and builds a string out of them.
|
27 |
#[allow(clippy::as_conversions)]
|
28 |
pub fn bytes_to_binary_string(bytes: &[u8]) -> String {
|
197 |
/// on error write it on the screen for debugging
|
198 |
#[allow(clippy::as_conversions)]
|
199 |
fn setup_ws_onerror(ws: &WebSocket, vdom: VdomWeak) {
|
224 |
/// on close WebSocket connection
|
225 |
#[allow(clippy::as_conversions)]
|
226 |
fn setup_ws_onclose(ws: &WebSocket, vdom: VdomWeak) {
|
43 |
impl From<Tag> for usize {
|
44 |
#[allow(clippy::as_conversions)]
|
45 |
fn from(tag: Tag) -> Self {
|
50 |
impl From<Tag> for u8 {
|
51 |
#[allow(clippy::as_conversions)]
|
52 |
fn from(tag: Tag) -> Self {
|
94 |
/// Create a cached embed from a given embed and message ID
|
95 |
#[allow(clippy::cast_sign_loss, clippy::as_conversions)]
|
96 |
#[must_use]
|
4 |
#[allow(clippy::as_conversions, clippy::zero_prefixed_literal)]
|
5 |
impl HalfBytesMask {
|
70 |
#[allow(clippy::as_conversions)]
|
71 |
unsafe {
|
4 |
#[allow(clippy::as_conversions)]
|
5 |
pub(crate) fn get() -> Option<String> {
|
96 |
/// Create a cached embed from a given embed and message ID
|
97 |
#[allow(clippy::cast_sign_loss, clippy::as_conversions)]
|
98 |
#[must_use]
|
9 |
const U53_MAX: u64 = 9_007_199_254_740_991;
|
10 |
#[allow(clippy::as_conversions)]
|
11 |
const I54_MAX: i64 = U53_MAX as i64;
|
145 |
/// Safely convert an unsigned 64-bit integer to `usize`
|
146 |
#[allow(clippy::as_conversions)]
|
147 |
#[inline]
|
189 |
#[test]
|
190 |
#[allow(clippy::as_conversions)]
|
191 |
fn test_i32_to_i54() {
|
221 |
#[test]
|
222 |
#[allow(clippy::as_conversions)]
|
223 |
fn test_u32_to_u53() {
|
704 |
let size = self.size.try_into()?;
|
705 |
#[allow(clippy::as_conversions)]
|
706 |
Some(std::slice::from_raw_parts(ptr.as_ptr() as *const _, size))
|
721 |
let size = self.size.try_into()?;
|
722 |
#[allow(clippy::as_conversions)]
|
723 |
Some(std::slice::from_raw_parts_mut(ptr.as_ptr() as *mut _, size))
|
1827 |
// Currently, `as usize` is the only way to accomplish this.
|
1828 |
#[allow(clippy::as_conversions)]
|
1829 |
let addr = bytes.as_ptr().cast::<()>() as usize;
|
10 |
#![allow(
|
11 |
clippy::as_conversions,
|
12 |
clippy::blanket_clippy_restriction_lints,
|
11 |
#![allow(
|
12 |
clippy::as_conversions,
|
13 |
clippy::blanket_clippy_restriction_lints,
|
11 |
#![allow(
|
12 |
clippy::as_conversions,
|
13 |
clippy::blanket_clippy_restriction_lints,
|
11 |
#![allow(
|
12 |
clippy::as_conversions,
|
13 |
clippy::cast_sign_loss,
|
38 |
clippy::missing_errors_doc,
|
39 |
clippy::as_conversions,
|
40 |
clippy::let_unit_value,
|
56 |
clippy::missing_errors_doc,
|
57 |
clippy::as_conversions,
|
58 |
clippy::let_unit_value,
|
67 |
clippy::missing_errors_doc,
|
68 |
clippy::as_conversions,
|
69 |
clippy::let_unit_value,
|
67 |
clippy::missing_errors_doc,
|
68 |
clippy::as_conversions,
|
69 |
clippy::let_unit_value,
|
64 |
clippy::missing_errors_doc,
|
65 |
clippy::as_conversions,
|
66 |
clippy::let_unit_value,
|
21 |
// Annoying/irrelevant clippy Restrictions
|
22 |
#![allow(clippy::as_conversions)]
|
23 |
#![allow(clippy::decimal_literal_representation)]
|
22 |
// Annoying/irrelevant clippy Restrictions
|
23 |
#![allow(clippy::as_conversions)]
|
24 |
#![allow(clippy::decimal_literal_representation)]
|
61 |
// Annoying/irrelevant clippy Restrictions
|
62 |
#![allow(clippy::as_conversions)]
|
63 |
#![allow(clippy::crosspointer_transmute)] // Useful for nasty ffi crap
|
11 |
#![allow(
|
12 |
clippy::as_conversions,
|
13 |
clippy::blanket_clippy_restriction_lints,
|
118 |
mod here_be_dragons {
|
119 |
#![allow(clippy::as_conversions, clippy::mem_forget, trivial_casts, unsafe_code)]
|
124 |
mod here_be_dragons {
|
125 |
#![allow(clippy::as_conversions, clippy::mem_forget, trivial_casts, unsafe_code)]
|
11 |
#![allow(
|
12 |
clippy::as_conversions,
|
13 |
clippy::blanket_clippy_restriction_lints,
|
24 |
#![deny(clippy::all, clippy::cargo)]
|
25 |
#![allow(clippy::as_conversions)]
|
26 |
#![cfg_attr(not(feature = "std"), no_std)]
|
75 |
#![allow(
|
76 |
clippy::as_conversions,
|
77 |
clippy::cast_possible_truncation,
|
75 |
#![allow(
|
76 |
clippy::as_conversions,
|
77 |
clippy::cast_possible_truncation,
|
74 |
// LINT-REPLACE-END
|
75 |
#![allow(clippy::as_conversions, clippy::integer_division, clippy::module_name_repetitions)]
|
21 |
clippy::wildcard_enum_match_arm, // Might be good to avoid if possible
|
22 |
clippy::as_conversions, // Should be removed asap?
|
23 |
clippy::panic_in_result_fn, // Should be removed asap
|
31 |
{
|
32 |
#![allow(clippy::as_conversions, clippy::cast_possible_truncation)]
|
19 |
{
|
20 |
#![allow(clippy::as_conversions, clippy::cast_possible_truncation)]
|
21 |
// This `as` conversion cast is ok because we want truncation.
|
44 |
#![allow(
|
45 |
clippy::as_conversions,
|
46 |
clippy::cast_sign_loss,
|
52 |
fn int_to_float(x: u64) -> f64 {
|
53 |
#![allow(clippy::as_conversions, clippy::cast_precision_loss)]
|
54 |
x as f64
|
13 |
fn into_u64(self) -> u64 {
|
14 |
#![allow(clippy::as_conversions)]
|
15 |
self as u64
|
13 |
fn into_usize(self) -> usize {
|
14 |
#![allow(clippy::as_conversions)]
|
15 |
self as usize
|
11 |
#![allow(
|
12 |
clippy::as_conversions,
|
13 |
clippy::cast_sign_loss,
|
10 |
clippy::undocumented_unsafe_blocks,
|
11 |
clippy::as_conversions,
|
12 |
clippy::integer_arithmetic,
|
35 |
clippy::implicit_return,
|
36 |
clippy::as_conversions,
|
37 |
clippy::dbg_macro,
|
66 |
clippy::todo, clippy::unimplemented, clippy::use_debug)]
|
67 |
#![allow(clippy::as_conversions, clippy::clone_on_ref_ptr,
|
68 |
clippy::enum_glob_use,
|
31 |
clippy::wildcard_imports,
|
32 |
clippy::as_conversions,
|
3 |
#![allow(
|
4 |
clippy::as_conversions,
|
5 |
clippy::unneeded_field_pattern,
|
1 |
#![allow(clippy::as_conversions)]
|
71 |
clippy::pattern_type_mismatch,
|
72 |
clippy::as_conversions
|
73 |
)]
|
30 |
clippy::pattern_type_mismatch,
|
31 |
clippy::as_conversions
|
32 |
)]
|
1 |
#![allow(clippy::as_conversions, clippy::unwrap_used)]
|
2 |
clippy::panic,
|
3 |
clippy::as_conversions,
|
4 |
clippy::cast_possible_wrap,
|
2 |
clippy::std_instead_of_core,
|
3 |
clippy::as_conversions,
|
4 |
clippy::integer_arithmetic,
|
1 |
#![allow(
|
2 |
clippy::as_conversions,
|
3 |
clippy::cast_sign_loss,
|
77 |
// a u8.
|
78 |
#![allow(clippy::as_conversions)]
|
79 |
let start_usize = start as usize;
|