25 |
// We only care about the highest bit of each byte for the mask.
|
26 |
#[allow(clippy::cast_possible_truncation, clippy::unnecessary_cast)]
|
27 |
pub const BITMASK_MASK: BitMaskWord = 0x8080_8080_8080_8080_u64 as GroupWord;
|
659 |
if self.kind() == CXCursor_EnumConstantDecl {
|
660 |
#[allow(clippy::unnecessary_cast)]
|
661 |
Some(clang_getEnumConstantDeclValue(self.x) as i64)
|
673 |
if self.kind() == CXCursor_EnumConstantDecl {
|
674 |
#[allow(clippy::unnecessary_cast)]
|
675 |
Some(clang_getEnumConstantDeclUnsignedValue(self.x) as u64)
|
2186 |
}
|
2187 |
#[allow(clippy::unnecessary_cast)]
|
2188 |
Some(value as i64)
|
659 |
if self.kind() == CXCursor_EnumConstantDecl {
|
660 |
#[allow(clippy::unnecessary_cast)]
|
661 |
Some(clang_getEnumConstantDeclValue(self.x) as i64)
|
673 |
if self.kind() == CXCursor_EnumConstantDecl {
|
674 |
#[allow(clippy::unnecessary_cast)]
|
675 |
Some(clang_getEnumConstantDeclUnsignedValue(self.x) as u64)
|
2171 |
}
|
2172 |
#[allow(clippy::unnecessary_cast)]
|
2173 |
Some(value as i64)
|
859 |
#[test]
|
860 |
#[allow(clippy::unnecessary_cast)]
|
861 |
fn test_cable_length_corrections_ord() {
|
1001 |
#[test]
|
1002 |
#[allow(clippy::unnecessary_cast)]
|
1003 |
fn test_geometric_corrections_ord() {
|
95 |
pub fn ttl(self) -> i32 {
|
96 |
#[allow(clippy::unnecessary_cast)]
|
97 |
let ttl = self.addrttl.ttl as i32;
|
97 |
pub fn ttl(self) -> i32 {
|
98 |
#[allow(clippy::unnecessary_cast)]
|
99 |
let ttl = self.addr6ttl.ttl as i32;
|
122 |
pub fn ttl(self) -> i32 {
|
123 |
#[allow(clippy::unnecessary_cast)]
|
124 |
let ttl = self.uri_reply.ttl as i32;
|
105 |
#[allow(clippy::unnecessary_cast)]
|
106 |
#[test]
|
122 |
#[allow(clippy::unnecessary_cast)]
|
123 |
#[test]
|
107 |
#[allow(clippy::unnecessary_cast)]
|
108 |
if libc::syscall(
|
25 |
clippy::cast_possible_truncation,
|
26 |
clippy::unnecessary_cast,
|
27 |
)]
|
922 |
#[allow(clippy::unnecessary_cast)]
|
923 |
fn save_frame_record(&mut self) {
|
935 |
#[allow(clippy::unnecessary_cast)]
|
936 |
fn recover_frame_record(&mut self) {
|
23 |
if rng.gen::<f32>() < disorder_factor {
|
24 |
#[allow(clippy::unnecessary_cast)]
|
25 |
rng.gen_range(0 as Integer, length as Integer)
|
38 |
const RAND_DIV: f32 = 1.0 / 0xffff_ffff_u32 as f32; // u32::MAX
|
39 |
#[allow(clippy::unnecessary_cast)]
|
40 |
const RAND_DIV_DOUBLE: f64 = 1.0 / 0xffff_ffff_u32 as f64; // u32::MAX
|
887 |
),
|
888 |
#[allow(clippy::unnecessary_cast)]
|
889 |
crtc: from_u32(vblank_event.crtc_id as u32).unwrap(),
|
56 |
const fn as_u32(self) -> u32 {
|
57 |
#[allow(clippy::unnecessary_cast)]
|
58 |
return self.bits as u32;
|
361 |
let inode_id = metadata.inode_id();
|
362 |
#[allow(clippy::unnecessary_cast)] // cast needed when inode_id > 64 bits on some platforms
|
363 |
Ok(FileInfo {
|
53 |
#[allow(clippy::unnecessary_cast)]
|
54 |
#[duplicate_item(
|
181 |
#[allow(clippy::unnecessary_cast)]
|
182 |
#[duplicate_item(
|
189 |
#[allow(clippy::unnecessary_cast)]
|
190 |
#[duplicate_item(
|
328 |
#[allow(clippy::unnecessary_cast)]
|
329 |
#[duplicate_item(
|
97 |
#[allow(clippy::unnecessary_cast)]
|
98 |
#[duplicate_item(
|
304 |
}
|
305 |
#[allow(clippy::unnecessary_cast)]
|
306 |
let t = self.bitset & (0 as Block).wrapping_sub(self.bitset);
|
3 |
/// Error codes used in various Godot APIs.
|
4 |
#[allow(clippy::unnecessary_cast)] // False positives: casts necessary for cross-platform
|
5 |
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
|
68 |
#[doc(hidden)]
|
69 |
#[allow(clippy::unnecessary_cast)] // False positives: casts necessary for cross-platform
|
70 |
pub unsafe fn result_from_sys(err: sys::godot_error) -> Result<(), Self> {
|
168 |
impl VariantType {
|
169 |
#[allow(clippy::unnecessary_cast)] // False positives: casts necessary for cross-platform
|
170 |
#[doc(hidden)]
|
186 |
#[allow(clippy::unnecessary_cast)] // False positives: casts necessary for cross-platform
|
187 |
#[repr(u32)]
|
202 |
impl CallError {
|
203 |
#[allow(clippy::unnecessary_cast)] // False positives: casts necessary for cross-platform
|
204 |
#[inline]
|
235 |
/// Godot variant operator kind.
|
236 |
#[allow(clippy::unnecessary_cast)] // False positives: casts necessary for cross-platform
|
237 |
#[repr(u32)]
|
276 |
#[allow(clippy::unnecessary_cast)] // False positives: casts necessary for cross-platform
|
277 |
impl VariantOperator {
|
18 |
#[allow(clippy::unnecessary_cast)] // False positives: casts necessary for cross-platform
|
19 |
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
|
38 |
#[allow(clippy::unnecessary_cast)] // False positives: casts necessary for cross-platform
|
39 |
unsafe fn find_version(
|
58 |
#[allow(clippy::unnecessary_cast)]
|
59 |
fn try_from(c: char) -> Result<Char, Self::Error> {
|
70 |
impl From<u8> for Char {
|
71 |
#[allow(clippy::unnecessary_cast)]
|
72 |
fn from(c: u8) -> Char {
|
77 |
impl From<Char> for u8 {
|
78 |
#[allow(clippy::unnecessary_cast)]
|
79 |
fn from(c: Char) -> u8 {
|
131 |
#[allow(clippy::unnecessary_cast)]
|
132 |
fn try_from(c: char) -> Result<UChar, Self::Error> {
|
143 |
impl From<u8> for UChar {
|
144 |
#[allow(clippy::unnecessary_cast)]
|
145 |
fn from(c: u8) -> UChar {
|
2674 |
type Error = GlibNoneError;
|
2675 |
#[allow(clippy::unnecessary_cast)]
|
2676 |
unsafe fn try_from_glib(val: libc::c_uint) -> Result<Self, GlibNoneError> {
|
25 |
// We only care about the highest bit of each byte for the mask.
|
26 |
#[allow(clippy::cast_possible_truncation, clippy::unnecessary_cast)]
|
27 |
pub const BITMASK_MASK: BitMaskWord = 0x8080_8080_8080_8080_u64 as GroupWord;
|
23 |
// We only care about the highest bit of each byte for the mask.
|
24 |
#[allow(clippy::cast_possible_truncation, clippy::unnecessary_cast)]
|
25 |
pub const BITMASK_MASK: BitMaskWord = 0x8080_8080_8080_8080_u64 as GroupWord;
|
24 |
// We only care about the highest bit of each byte for the mask.
|
25 |
#[allow(clippy::cast_possible_truncation, clippy::unnecessary_cast)]
|
26 |
pub const BITMASK_MASK: BitMaskWord = 0x8080_8080_8080_8080_u64 as GroupWord;
|
113 |
#[allow(dead_code, clippy::identity_op, clippy::unnecessary_cast)]
|
114 |
mod bitfield {
|
1501 |
impl IntoProcessorSet for Processor {
|
1502 |
#[allow(clippy::unnecessary_cast)] // <https://github.com/rust-lang/rust-clippy/issues/6923>
|
1503 |
#[doc(hidden)]
|
166 |
#[test]
|
167 |
#[allow(clippy::unnecessary_cast)]
|
168 |
fn decoding_integers() {
|
209 |
#[cfg(any(target_os = "linux", target_os = "macos"))]
|
210 |
#[allow(clippy::unnecessary_cast)]
|
211 |
fn major_minor(dev: u64) -> (u32, u32) {
|
517 |
#[cfg(target_os = "linux")]
|
518 |
#[allow(clippy::unnecessary_cast)]
|
519 |
fn fstatat_dev_ino<F: AsRawFd>(&self, f: &F, path: &[u8], follow: bool) -> Result<(u64, u64)> {
|
534 |
#[cfg(not(target_os = "linux"))]
|
535 |
#[allow(clippy::unnecessary_cast)]
|
536 |
fn fstatat_dev_ino<F: AsRawFd>(&self, f: &F, path: &[u8], follow: bool) -> Result<(u64, u64)> {
|
551 |
#[cfg(target_os = "linux")]
|
552 |
#[allow(clippy::unnecessary_cast)]
|
553 |
fn ftruncate<F: AsRawFd>(f: &F, size: u64) -> Result<()> {
|
558 |
#[cfg(not(target_os = "linux"))]
|
559 |
#[allow(clippy::unnecessary_cast)]
|
560 |
fn ftruncate<F: AsRawFd>(f: &F, size: u64) -> Result<()> {
|
209 |
// GuestAddress is u32 for 32 bit guests
|
210 |
#[allow(clippy::unnecessary_cast)]
|
211 |
Some(id as u64)
|
194 |
// GuestAddress is u32 for 32 bit guests
|
195 |
#[allow(clippy::unnecessary_cast)]
|
196 |
Some(id as u64)
|
231 |
// GuestAddress is u32 for 32 bit guests
|
232 |
#[allow(clippy::unnecessary_cast)]
|
233 |
Some((hash_me(src as u64) ^ hash_me(dest as u64)) & (unsafe { EDGES_MAP_PTR_NUM } as u64 - 1))
|
259 |
// GuestAddress is u32 for 32 bit guests
|
260 |
#[allow(clippy::unnecessary_cast)]
|
261 |
Some(pc as u64)
|
273 |
// GuestAddress is u32 for 32 bit guests
|
274 |
#[allow(clippy::unnecessary_cast)]
|
275 |
Some(hash_me(pc as u64))
|
12 |
#[inline]
|
13 |
#[allow(clippy::unnecessary_cast)]
|
14 |
pub fn from_char7b(ch: char) -> NcResult<Self> {
|
258 |
#[inline]
|
259 |
#[allow(clippy::unnecessary_cast)]
|
260 |
pub const fn nccell_fg_palindex(cell: &NcCell) -> NcPaletteIndex {
|
267 |
#[inline]
|
268 |
#[allow(clippy::unnecessary_cast)]
|
269 |
pub const fn nccell_bg_palindex(cell: &NcCell) -> NcPaletteIndex {
|
671 |
#[inline]
|
672 |
#[allow(clippy::unnecessary_cast)]
|
673 |
pub fn ncchannels_set_fg_palindex(channels: &mut NcChannels_u64, index: impl Into<NcPaletteIndex>) {
|
6 |
#[inline]
|
7 |
#[allow(clippy::unnecessary_cast)]
|
8 |
pub const fn ncpixel(red: u8, green: u8, blue: u8) -> NcPixel_u32 {
|
209 |
// NOTE(allow) cast is necessary on some architectures (e.g. x86)
|
210 |
#[allow(clippy::unnecessary_cast)]
|
211 |
"/" => {
|
588 |
#[test]
|
589 |
#[allow(clippy::unnecessary_cast)]
|
590 |
/// We expect coarse channel 0 ( fine channels 0,1 ) to be the same as in `get_mwa_ord_context`,
|
778 |
#[test]
|
779 |
#[allow(clippy::unnecessary_cast)]
|
780 |
fn test_read_mwalib_mwa_legacy() {
|
69 |
#[allow(clippy::unnecessary_cast)]
|
70 |
#[allow(clippy::absurd_extreme_comparisons)]
|
233 |
#[allow(clippy::unnecessary_cast)]
|
234 |
#[allow(clippy::absurd_extreme_comparisons)]
|
68 |
#[allow(clippy::unnecessary_cast)]
|
69 |
#[allow(clippy::absurd_extreme_comparisons)]
|
228 |
#[allow(clippy::unnecessary_cast)]
|
229 |
#[allow(clippy::absurd_extreme_comparisons)]
|
95 |
#[allow(clippy::unnecessary_cast)]
|
96 |
(
|
220 |
// The cast is not unnecessary on all platforms.
|
221 |
#[allow(clippy::unnecessary_cast)]
|
222 |
pub fn ino(&self) -> u64 {
|
465 |
#[cfg_attr(docsrs, doc(cfg(all())))]
|
466 |
#[allow(clippy::unnecessary_cast)] // Not unnecessary on all arches
|
467 |
pub fn flags(&self) -> MntFlags {
|
794 |
// The cast is not unnecessary on all platforms.
|
795 |
#[allow(clippy::unnecessary_cast)]
|
796 |
fn assert_fs_equals(fs: Statfs, vfs: Statvfs) {
|
843 |
// The cast is not unnecessary on all platforms.
|
844 |
#[allow(clippy::unnecessary_cast)]
|
845 |
fn assert_fs_equals_strict(fs: Statfs, vfs: Statvfs) {
|
33 |
// The cast is not unnecessary on all platforms.
|
34 |
#[allow(clippy::unnecessary_cast)]
|
35 |
pub fn uptime(&self) -> Duration {
|
69 |
// The cast is not unnecessary on all platforms.
|
70 |
#[allow(clippy::unnecessary_cast)]
|
71 |
fn scale_mem(&self, units: mem_blocks_t) -> u64 {
|
307 |
// The cast is not unnecessary on all platforms.
|
308 |
#[allow(clippy::unnecessary_cast)]
|
309 |
fn num_seconds(&self) -> i64 {
|
325 |
// The cast is not unnecessary on all platforms.
|
326 |
#[allow(clippy::unnecessary_cast)]
|
327 |
fn num_nanoseconds(&self) -> i64 {
|
554 |
// The cast is not unnecessary on all platforms.
|
555 |
#[allow(clippy::unnecessary_cast)]
|
556 |
fn num_seconds(&self) -> i64 {
|
568 |
// The cast is not unnecessary on all platforms.
|
569 |
#[allow(clippy::unnecessary_cast)]
|
570 |
fn num_microseconds(&self) -> i64 {
|
8 |
/// The equivalent of `true` for Objective-C's [`BOOL`][`super::BOOL`] type.
|
9 |
#[allow(clippy::unnecessary_cast)]
|
10 |
pub const YES: BOOL = true as BOOL; // true -> 1
|
12 |
/// The equivalent of `false` for Objective-C's [`BOOL`][`super::BOOL`] type.
|
13 |
#[allow(clippy::unnecessary_cast)]
|
14 |
pub const NO: BOOL = false as BOOL; // false -> 0
|
514 |
impl Asn1IntegerRef {
|
515 |
#[allow(missing_docs, clippy::unnecessary_cast)]
|
516 |
#[deprecated(since = "0.10.6", note = "use to_bn instead")]
|
339 |
#[corresponds(BN_num_bits)]
|
340 |
#[allow(clippy::unnecessary_cast)]
|
341 |
pub fn num_bits(&self) -> i32 {
|
236 |
#[corresponds(RSA_check_key)]
|
237 |
#[allow(clippy::unnecessary_cast)]
|
238 |
pub fn check_key(&self) -> Result<bool, ErrorStack> {
|
1869 |
#[corresponds(SSL_CTX_sess_get_cache_size)]
|
1870 |
#[allow(clippy::unnecessary_cast)]
|
1871 |
pub fn session_cache_size(&self) -> i64 {
|
9 |
clippy::too_many_arguments,
|
10 |
clippy::unnecessary_cast
|
11 |
)]
|
9 |
clippy::too_many_arguments,
|
10 |
clippy::unnecessary_cast
|
11 |
)]
|
111 |
#[inline]
|
112 |
#[allow(clippy::unnecessary_cast)]
|
113 |
fn color_components(&self) -> (FPDF_DWORD, FPDF_DWORD, FPDF_DWORD, FPDF_DWORD) {
|
496 |
} else if result == HASH_KEY_IS_LONG {
|
497 |
#[allow(clippy::unnecessary_cast)]
|
498 |
IterKey::Index(num_index as u64)
|
529 |
// we want to be explicit about the type here
|
530 |
#[allow(clippy::unnecessary_cast)]
|
531 |
buf[1..].copy_from_slice(&(v as u64).to_be_bytes());
|
33 |
#[allow(clippy::unnecessary_cast)]
|
34 |
pub fn fahrenheit(&self) -> Degrees {
|
54 |
FileType::DeepArchive => 3,
|
55 |
#[allow(clippy::unnecessary_cast)]
|
56 |
FileType::Other(ft) => ft as ty,
|
69 |
fn from(value: ty) -> Self {
|
70 |
#[allow(clippy::unnecessary_cast)]
|
71 |
match value as u8 {
|
222 |
impl io::Write for RwOps<'_> {
|
223 |
#[allow(clippy::unnecessary_cast)]
|
224 |
fn write(&mut self, buf: &[u8]) -> io::Result<usize> {
|
54 |
/// Returns the first free mixing channel if exists.
|
55 |
#[allow(clippy::unnecessary_cast)]
|
56 |
pub fn first_free(&self) -> Option<Channel> {
|
30 |
#[must_use]
|
31 |
#[allow(clippy::unnecessary_cast)]
|
32 |
pub fn simd_alignment() -> usize {
|
59 |
impl PackedPixelLayout {
|
60 |
#[allow(clippy::unnecessary_cast)]
|
61 |
pub(super) fn as_raw(self) -> u32 {
|
14 |
impl BitmapPixelOrder {
|
15 |
#[allow(clippy::unnecessary_cast)]
|
16 |
pub(super) fn as_raw(self) -> u32 {
|
55 |
impl PackedPixelOrder {
|
56 |
#[allow(clippy::unnecessary_cast)]
|
57 |
pub(super) fn as_raw(self) -> u32 {
|
104 |
impl ArrayPixelOrder {
|
105 |
#[allow(clippy::unnecessary_cast)]
|
106 |
pub(super) fn as_raw(self) -> u32 {
|
16 |
impl BitmapPixelType {
|
17 |
#[allow(clippy::unnecessary_cast)]
|
18 |
pub(super) fn as_raw(self) -> u32 {
|
54 |
impl PackedPixelType {
|
55 |
#[allow(clippy::unnecessary_cast)]
|
56 |
pub(super) fn as_raw(self) -> u32 {
|
89 |
impl ArrayPixelType {
|
90 |
#[allow(clippy::unnecessary_cast)]
|
91 |
pub(super) fn as_raw(self) -> u32 {
|
6 |
/// A value indicating no limit.
|
7 |
#[allow(clippy::unnecessary_cast)]
|
8 |
pub const INFINITY: u64 = C::RLIM_INFINITY as u64;
|
47 |
#[allow(clippy::unnecessary_cast)]
|
48 |
if ret == 0 {
|
108 |
if ret == 0 {
|
109 |
#[allow(clippy::unnecessary_cast)]
|
110 |
if let Some((soft, hard)) = old_limit {
|
404 |
let ret_prec_t = xmpfr::get_prec(self);
|
405 |
#[allow(clippy::unnecessary_cast)]
|
406 |
let ret = ret_prec_t as u32;
|
407 |
#[allow(clippy::unnecessary_cast)]
|
408 |
if ret_prec_t < 0 || ret_prec_t != ret as prec_t {
|
1780 |
let ret_exp_t = xmpfr::get_exp(self);
|
1781 |
#[allow(clippy::unnecessary_cast)]
|
1782 |
let ret = ret_exp_t as i32;
|
1783 |
#[allow(clippy::unnecessary_cast)]
|
1784 |
if ret_exp_t != ret as exp_t {
|
312 |
// some platforms encode lengths as `u32` so we cast everything to be safe
|
313 |
#[allow(clippy::unnecessary_cast)]
|
314 |
let msg_controllen = self.msg_controllen as usize;
|
416 |
// NOTE: `pthread_t` is a `usize`, so clippy is wrong complaining about this cast
|
417 |
#[allow(clippy::unnecessary_cast)]
|
418 |
unsafe {
|
200 |
}
|
201 |
#[allow(clippy::unnecessary_cast)]
|
202 |
fn insert(&mut self, vi: VarId) -> usize {
|
1082 |
}
|
1083 |
#[allow(clippy::unnecessary_cast)]
|
1084 |
fn minimize_with_bi_clauses(&mut self, asg: &impl AssignIF, vec: &mut Vec<Lit>) {
|
361 |
{
|
362 |
#[allow(clippy::unnecessary_cast)]
|
363 |
if mount.major as u64 == major && mount.minor as u64 == minor {
|
457 |
// Upcast all arch-dependent variable width values to u64
|
458 |
#[allow(clippy::unnecessary_cast)]
|
459 |
let (block_size, blocks, blocks_free) = (
|
81 |
fn strerror(errno: libc::c_int) -> &'static str {
|
82 |
#[allow(clippy::unnecessary_cast)]
|
83 |
static mut BUF: [libc::c_char; 1024] = [0 as libc::c_char; 1024];
|
10 |
unsafe {
|
11 |
#[allow(clippy::unnecessary_cast)]
|
12 |
let mut fds: [libc::c_int; 2] = [-1 as libc::c_int; 2];
|
866 |
#[repr(u8)]
|
867 |
#[allow(trivial_numeric_casts, clippy::unnecessary_cast)] // required because the Encode derive produces a warning otherwise
|
868 |
pub enum MyType {
|
130 |
/// ```
|
131 |
#[allow(clippy::unnecessary_cast)]
|
132 |
#[must_use]
|
275 |
impl Header {
|
276 |
#[allow(clippy::unnecessary_cast)]
|
277 |
fn len(&self) -> usize {
|
309 |
impl Header {
|
310 |
#[allow(clippy::unnecessary_cast)]
|
311 |
fn cap(&self) -> usize {
|
13 |
#[allow(clippy::cast_sign_loss)]
|
14 |
#[allow(clippy::unnecessary_cast)]
|
15 |
#[allow(clippy::unnecessary_wraps)]
|
2704 |
// S_IXOTH -> other users have execute permission
|
2705 |
#[allow(clippy::unnecessary_cast)]
|
2706 |
return md.mode() & ((S_IXUSR | S_IXGRP | S_IXOTH) as u32) != 0;
|
281 |
match pts_path.metadata() {
|
282 |
#[allow(clippy::unnecessary_cast)]
|
283 |
Ok(meta) => {
|
522 |
// Why is S_IWUSR showing up as a u16 on macos?
|
523 |
#[allow(clippy::unnecessary_cast)]
|
524 |
let user_writable = (mode & (libc::S_IWUSR as u32)) != 0;
|
11 |
/// The value of [`VORBIS_FLOAT_WORD`], as a native double-precision float.
|
12 |
#[allow(clippy::unnecessary_cast)] // There are no binary f64 literals
|
13 |
const VORBIS_FLOAT_VALUE: f64 = -0b100000000000000000001 as f64;
|
1003 |
let mut name_len = 2048;
|
1004 |
#[allow(clippy::unnecessary_cast)]
|
1005 |
let mut name = [0 as WCHAR; 2048];
|
1028 |
let mut name_len = 2048;
|
1029 |
#[allow(clippy::unnecessary_cast)]
|
1030 |
let mut name = [0 as WCHAR; 2048];
|
101 |
#[allow(clippy::unnecessary_cast)]
|
102 |
pub fn enable_termination(&mut self, terminator: u8) -> HalResult<()> {
|
121 |
#[allow(clippy::unnecessary_cast)]
|
122 |
pub fn read(&mut self, buf: &mut [u8]) -> HalResult<i32> {
|
130 |
#[allow(clippy::unnecessary_cast)]
|
131 |
pub fn read_len(&mut self, buf: &mut [u8], len: usize) -> HalResult<i32> {
|
30 |
impl FontWrite for Base {
|
31 |
#[allow(clippy::unnecessary_cast)]
|
32 |
fn write_into(&self, writer: &mut TableWriter) {
|
155 |
impl FontWrite for BaseTagList {
|
156 |
#[allow(clippy::unnecessary_cast)]
|
157 |
fn write_into(&self, writer: &mut TableWriter) {
|
209 |
impl FontWrite for BaseScriptList {
|
210 |
#[allow(clippy::unnecessary_cast)]
|
211 |
fn write_into(&self, writer: &mut TableWriter) {
|
323 |
impl FontWrite for BaseScript {
|
324 |
#[allow(clippy::unnecessary_cast)]
|
325 |
fn write_into(&self, writer: &mut TableWriter) {
|
442 |
impl FontWrite for BaseValues {
|
443 |
#[allow(clippy::unnecessary_cast)]
|
444 |
fn write_into(&self, writer: &mut TableWriter) {
|
69 |
impl FontWrite for Cpal {
|
70 |
#[allow(clippy::unnecessary_cast)]
|
71 |
fn write_into(&self, writer: &mut TableWriter) {
|
39 |
impl FontWrite for TableDirectory {
|
40 |
#[allow(clippy::unnecessary_cast)]
|
41 |
fn write_into(&self, writer: &mut TableWriter) {
|
51 |
impl FontWrite for Gdef {
|
52 |
#[allow(clippy::unnecessary_cast)]
|
53 |
fn write_into(&self, writer: &mut TableWriter) {
|
146 |
impl FontWrite for AttachList {
|
147 |
#[allow(clippy::unnecessary_cast)]
|
148 |
fn write_into(&self, writer: &mut TableWriter) {
|
204 |
impl FontWrite for AttachPoint {
|
205 |
#[allow(clippy::unnecessary_cast)]
|
206 |
fn write_into(&self, writer: &mut TableWriter) {
|
67 |
#[allow(clippy::unnecessary_cast)]
|
68 |
#[allow(clippy::absurd_extreme_comparisons)]
|
228 |
#[allow(clippy::unnecessary_cast)]
|
229 |
#[allow(clippy::absurd_extreme_comparisons)]
|
126 |
impl Default for LinkTxConf {
|
127 |
#[allow(clippy::unnecessary_cast)]
|
128 |
fn default() -> Self {
|
16 |
clippy::single_match,
|
17 |
clippy::unnecessary_cast
|
18 |
)]
|
1 |
#![allow(clippy::useless_conversion)]
|
2 |
#![allow(clippy::unnecessary_cast)]
|
1 |
#![allow(clippy::useless_conversion)]
|
2 |
#![allow(clippy::unnecessary_cast)]
|
1 |
#![allow(clippy::useless_conversion)]
|
2 |
#![allow(clippy::unnecessary_cast)]
|
1 |
#![allow(clippy::useless_conversion)]
|
2 |
#![allow(clippy::unnecessary_cast)]
|
1 |
#![allow(clippy::useless_conversion)]
|
2 |
#![allow(clippy::unnecessary_cast)]
|
1 |
#![allow(clippy::unnecessary_cast)]
|
6 |
#![allow(clippy::missing_safety_doc)]
|
7 |
#![allow(clippy::unnecessary_cast)]
|
8 |
#![allow(clippy::unreadable_literal)]
|
4 |
// invocation.
|
5 |
#![allow(clippy::unnecessary_cast)]
|
1 |
#![allow(clippy::unnecessary_to_owned)]
|
2 |
#![allow(clippy::unnecessary_cast)]
|
12 |
#![allow(clippy::manual_non_exhaustive)]
|
13 |
#![allow(clippy::unnecessary_cast)]
|
4 |
#![allow(clippy::manual_non_exhaustive)]
|
5 |
#![allow(clippy::unnecessary_cast)]
|
11 |
#![allow(clippy::redundant_static_lifetimes)]
|
12 |
#![allow(clippy::unnecessary_cast)]
|
4 |
#![allow(clippy::manual_non_exhaustive)]
|
5 |
#![allow(clippy::unnecessary_cast)]
|
50 |
#![warn(clippy::pedantic)]
|
51 |
#![allow(clippy::unnecessary_cast)]
|
52 |
#![allow(clippy::must_use_candidate)]
|
1 |
#![allow(clippy::unnecessary_cast)]
|
2 |
mod sysinfo_ffi;
|
1 |
#![allow(clippy::unnecessary_cast)]
|
2 |
use crate::extra;
|
1 |
#![allow(clippy::unnecessary_cast)]
|
2 |
mod sysinfo_ffi;
|
1 |
#![allow(clippy::unnecessary_cast)]
|
2 |
use crate::extra;
|
1 |
#![allow(clippy::unnecessary_cast)]
|
2 |
use crate::dirs;
|
1 |
#![allow(clippy::unnecessary_cast)]
|
2 |
mod sysinfo_ffi;
|
2 |
#![allow(unused_imports)]
|
3 |
#![allow(clippy::unnecessary_cast)]
|
1 |
#![allow(clippy::unnecessary_cast)]
|
1 |
#![allow(clippy::unnecessary_cast)]
|
4 |
#![allow(unused_imports)]
|
5 |
#![allow(clippy::unnecessary_cast)]
|
8 |
#![allow(unused_imports)]
|
9 |
#![allow(clippy::unnecessary_cast)]
|
4 |
#![allow(unused_imports)]
|
5 |
#![allow(clippy::unnecessary_cast)]
|
4 |
#![allow(unused_imports)]
|
5 |
#![allow(clippy::unnecessary_cast)]
|
4 |
#![allow(unused_imports)]
|
5 |
#![allow(clippy::unnecessary_cast)]
|
4 |
#![allow(unused_imports)]
|
5 |
#![allow(clippy::unnecessary_cast)]
|
4 |
#![allow(unused_imports)]
|
5 |
#![allow(clippy::unnecessary_cast)]
|
4 |
#![allow(unused_imports)]
|
5 |
#![allow(clippy::unnecessary_cast)]
|
17 |
clippy::unused_unit,
|
18 |
clippy::unnecessary_cast,
|
19 |
clippy::too_many_arguments,
|
17 |
clippy::unused_unit,
|
18 |
clippy::unnecessary_cast,
|
19 |
clippy::too_many_arguments,
|
28 |
#![allow(non_snake_case)]
|
29 |
#![allow(clippy::unnecessary_cast)]
|
52 |
#![warn(missing_docs, missing_debug_implementations, rust_2018_idioms)]
|
53 |
#![allow(clippy::useless_conversion, clippy::unnecessary_cast)]
|
54 |
#![cfg_attr(docsrs, feature(doc_cfg))]
|
10 |
// This warning is generated by some modular bitfield macro.
|
11 |
#![allow(clippy::unnecessary_cast)]
|
12 |
#![allow(clippy::unnecessary_cast)]
|
12 |
#![allow(clippy::unnecessary_cast)]
|
1 |
#![allow(clippy::cast_possible_truncation)]
|
2 |
#![allow(clippy::unnecessary_cast)]
|
1 |
#![allow(clippy::unnecessary_cast)]
|
2 |
#![allow(dead_code)]
|
1 |
#![allow(clippy::unnecessary_cast)]
|
122 |
// It is common in linux and libc APIs for types to vary between platforms.
|
123 |
#![allow(clippy::unnecessary_cast)]
|
124 |
// It is common in linux and libc APIs for types to vary between platforms.
|
4 |
#![allow(clippy::unnecessary_cast)] // some platforms encode lengths as `u32` so we cast everything to be safe
|
4 |
#![allow(unused_imports)]
|
5 |
#![allow(clippy::unnecessary_cast)]
|
4 |
#![allow(unused_imports)]
|
5 |
#![allow(clippy::unnecessary_cast)]
|
4 |
#![allow(unused_imports)]
|
5 |
#![allow(clippy::unnecessary_cast)]
|
4 |
#![allow(unused_imports)]
|
5 |
#![allow(clippy::unnecessary_cast)]
|
4 |
#![allow(unused_imports)]
|
5 |
#![allow(clippy::unnecessary_cast)]
|
4 |
#![allow(unused_imports)]
|
5 |
#![allow(clippy::unnecessary_cast)]
|
1 |
#![allow(clippy::bool_comparison)]
|
2 |
#![allow(clippy::unnecessary_cast)]
|
1 |
#![allow(clippy::clone_on_copy)]
|
2 |
#![allow(clippy::unnecessary_cast)]
|
1 |
#![allow(clippy::unnecessary_cast)]
|
3 |
#![allow(clippy::useless_conversion, clippy::unnecessary_cast)]
|
36 |
clippy::too_many_lines,
|
37 |
clippy::unnecessary_cast,
|
38 |
clippy::unreadable_literal,
|
1 |
#![allow(clippy::approx_constant)]
|
2 |
#![allow(clippy::unnecessary_cast)]
|
3 |
#![allow(clippy::assertions_on_constants)]
|
583 |
// Note: desactivate Clippy check here because cast to ZInt can't be changed since ZInt size might change
|
584 |
#![allow(clippy::unnecessary_cast)]
|
585 |
match target {
|