595 |
#[allow(clippy::cast_possible_wrap, clippy::cast_possible_truncation)]
|
596 |
unsafe {
|
45 |
// We also allow wraps since we take the sign into account.
|
46 |
#[allow(clippy::cast_precision_loss, clippy::cast_possible_wrap)]
|
47 |
for (i, ®ister_value) in [
|
274 |
unsafe {
|
275 |
#[allow(clippy::cast_possible_wrap)]
|
276 |
let ret = libc::kill(pid as i32, libc::SIGTERM);
|
128 |
#[allow(clippy::cast_possible_wrap)]
|
129 |
#[test]
|
2231 |
#[must_use]
|
2232 |
#[allow(clippy::cast_possible_wrap)]
|
2233 |
fn into_iter(mut self) -> IntoIter<T, A> {
|
3372 |
#[allow(clippy::cast_possible_wrap)]
|
3373 |
unsafe fn offset_from<T>(p: *const T, origin: *const T) -> isize
|
53 |
#[allow(
|
54 |
clippy::cast_possible_wrap, // byte: u8 as i8
|
55 |
// byte: i32 as u16
|
637 |
#[allow(clippy::cast_possible_wrap)]
|
638 |
fn add(self, rhs: Duration) -> Self {
|
649 |
#[allow(clippy::cast_possible_wrap)]
|
650 |
fn sub(self, rhs: Duration) -> Self {
|
661 |
#[allow(clippy::cast_possible_wrap)]
|
662 |
fn sub(self, other: Self) -> Duration {
|
92 |
#[must_use]
|
93 |
#[allow(clippy::cast_possible_wrap, clippy::cast_possible_truncation)]
|
94 |
pub fn relative_degree(&self) -> i32 {
|
204 |
#[allow(clippy::cast_possible_wrap, clippy::cast_possible_truncation)]
|
205 |
impl<'a> TryFrom<(usize, &'a graphql::CreateStepInput)> for NewStep<'a> {
|
126 |
#[must_use]
|
127 |
#[allow(clippy::cast_possible_wrap, clippy::cast_possible_truncation)]
|
128 |
pub fn relative_degree(&self) -> i32 {
|
6 |
/// the value permits. Constructs an error message based on `msg` otherwise.
|
7 |
#[allow(clippy::cast_possible_wrap, clippy::cast_possible_truncation, clippy::if_same_then_else)]
|
8 |
pub fn int_to_usize_with_msg<T: Into<i64>>(x: T, msg: &str) -> Result<usize> {
|
77 |
#[allow(clippy::cast_sign_loss)]
|
78 |
#[allow(clippy::cast_possible_wrap)]
|
79 |
NEG => (-(val_right as i8) as u8, false),
|
31 |
/// Rolling back or further farther than what is valid will just return the oldest / newest snapshot.
|
32 |
#[allow(clippy::cast_possible_wrap)]
|
33 |
#[allow(clippy::cast_sign_loss)]
|
46 |
std::thread::sleep(timeout);
|
47 |
#[allow(clippy::cast_possible_wrap)]
|
48 |
#[cfg(not(target_os = "windows"))]
|
99 |
#[allow(clippy::cast_possible_wrap)]
|
100 |
#[cfg(not(target_os = "windows"))]
|
131 |
#[allow(clippy::cast_possible_wrap)]
|
132 |
#[cfg(not(target_os = "windows"))]
|
283 |
sleep(timeout).await;
|
284 |
#[allow(clippy::cast_possible_wrap)]
|
285 |
#[cfg(not(target_os = "windows"))]
|
360 |
fut_stderr.abort();
|
361 |
#[allow(clippy::cast_possible_wrap)]
|
362 |
ppid.map(|pid| async move {
|
69 |
fn from(data: &[u8; TOTAL_LENGTH]) -> Self {
|
70 |
#[allow(clippy::cast_possible_wrap)] // Using documentation
|
71 |
let dig_h6 = data[32] as i8;
|
100 |
pub fn compensate_temperature(&self, adc_t: u32) -> i32 {
|
101 |
#[allow(clippy::cast_possible_wrap)] // Using reference algorithm
|
102 |
let adc_t = adc_t as i32;
|
20 |
// unit, leaving 256 - 13 = 243 values.
|
21 |
#[allow(clippy::cast_possible_wrap)]
|
22 |
#[allow(clippy::cast_possible_truncation)]
|
63 |
/// cannot be done without losing data, an error will be returned.
|
64 |
#[allow(clippy::cast_possible_wrap)]
|
65 |
pub fn into_i64(self) -> Result<Option<i64>, Error> {
|
113 |
/// overflows will be allowed during conversion.
|
114 |
#[allow(clippy::cast_possible_wrap)]
|
115 |
pub fn into_i64_lossy(self, saturating: bool) -> Result<Option<i64>, Error> {
|
228 |
/// cannot be done without losing data, an error will be returned.
|
229 |
#[allow(clippy::cast_possible_wrap)]
|
230 |
pub async fn into_i64(self) -> Result<Option<i64>, Error> {
|
278 |
/// overflows will be allowed during conversion.
|
279 |
#[allow(clippy::cast_possible_wrap)]
|
280 |
pub async fn into_i64_lossy(self, saturating: bool) -> Result<Option<i64>, Error> {
|
570 |
#[must_use]
|
571 |
#[allow(clippy::cast_possible_wrap, clippy::cast_possible_truncation)]
|
572 |
pub fn as_i64_lossy(&self, saturating: bool) -> i64 {
|
235 |
#[allow(clippy::cast_possible_wrap)]
|
236 |
Some(if a < b {
|
256 |
#[allow(clippy::cast_possible_wrap)]
|
257 |
Some(if a > b {
|
21 |
#[cfg(feature = "openssl")]
|
22 |
#[allow(clippy::cast_possible_wrap)]
|
23 |
#[allow(clippy::cast_possible_truncation)]
|
29 |
/// Convert an array index to a point.
|
30 |
#[allow(clippy::cast_possible_wrap)]
|
31 |
#[allow(clippy::cast_possible_truncation)]
|
161 |
clippy::cast_possible_truncation,
|
162 |
clippy::cast_possible_wrap,
|
163 |
clippy::into_iter_on_ref
|
92 |
#[allow(clippy::cast_possible_truncation, clippy::cast_possible_wrap)]
|
93 |
fn top_down_value(len: usize, i: usize) -> u32 {
|
45 |
};
|
46 |
#[allow(clippy::cast_possible_wrap)]
|
47 |
let nd =
|
662 |
) -> String {
|
663 |
#[allow(clippy::cast_possible_wrap)]
|
664 |
let size_diff: i64 = size_after as i64 - size_before as i64;
|
67 |
#[must_use]
|
68 |
#[allow(clippy::cast_possible_wrap)]
|
69 |
pub const fn same_direction(origin: Coord, a: Coord, b: Coord) -> bool {
|
73 |
unsafe {
|
74 |
#[allow(clippy::cast_possible_wrap)]
|
75 |
let handle = chfl_trajectory_open(path.as_ptr(), mode as c_char);
|
111 |
unsafe {
|
112 |
#[allow(clippy::cast_possible_wrap)]
|
113 |
let handle = chfl_trajectory_with_format(
|
75 |
impl From<[u8; 4]> for u8x4 {
|
76 |
#[allow(clippy::unseparated_literal_suffix, clippy::cast_possible_wrap)]
|
77 |
#[cfg_attr(not(debug_assertions), inline(always))]
|
125 |
impl From<(u8, u8, u8, u8)> for u8x4 {
|
126 |
#[allow(clippy::unseparated_literal_suffix, clippy::cast_possible_wrap)]
|
127 |
#[cfg_attr(not(debug_assertions), inline(always))]
|
185 |
impl From1<u8> for u8x4 {
|
186 |
#[allow(clippy::unseparated_literal_suffix, clippy::cast_possible_wrap)]
|
187 |
#[cfg_attr(not(debug_assertions), inline(always))]
|
436 |
impl From<u32> for u32x4 {
|
437 |
#[allow(clippy::cast_possible_wrap)]
|
438 |
#[cfg_attr(not(debug_assertions), inline(always))]
|
456 |
impl From<[u32; 4]> for u32x4 {
|
457 |
#[allow(clippy::cast_possible_wrap)]
|
458 |
#[cfg_attr(not(debug_assertions), inline(always))]
|
75 |
impl From<[u8; 4]> for u8x4 {
|
76 |
#[allow(clippy::unseparated_literal_suffix, clippy::cast_possible_wrap)]
|
77 |
#[cfg_attr(not(debug_assertions), inline(always))]
|
125 |
impl From<(u8, u8, u8, u8)> for u8x4 {
|
126 |
#[allow(clippy::unseparated_literal_suffix, clippy::cast_possible_wrap)]
|
127 |
#[cfg_attr(not(debug_assertions), inline(always))]
|
185 |
impl From1<u8> for u8x4 {
|
186 |
#[allow(clippy::unseparated_literal_suffix, clippy::cast_possible_wrap)]
|
187 |
#[cfg_attr(not(debug_assertions), inline(always))]
|
436 |
impl From<u32> for u32x4 {
|
437 |
#[allow(clippy::cast_possible_wrap)]
|
438 |
#[cfg_attr(not(debug_assertions), inline(always))]
|
456 |
impl From<[u32; 4]> for u32x4 {
|
457 |
#[allow(clippy::cast_possible_wrap)]
|
458 |
#[cfg_attr(not(debug_assertions), inline(always))]
|
68 |
#[allow(clippy::cast_possible_wrap)]
|
69 |
fn parse_date(src: &str) -> DateTime<Utc> {
|
3516 |
/// - Stop: store counter count
|
3517 |
#[allow(clippy::cast_possible_wrap)]
|
3518 |
pub fn visit_stableticker(
|
391 |
// TODO - Add the ability to import a target palette
|
392 |
#[allow(clippy::cast_possible_wrap)]
|
393 |
#[allow(clippy::cast_possible_truncation)]
|
68 |
fn nt_status_to_error(status: i32) -> Error {
|
69 |
#[allow(clippy::cast_possible_wrap)]
|
70 |
Error::from_raw_os_error(unsafe { RtlNtStatusToDosError(status) } as _)
|
692 |
/// `state_id` must be smaller than the length of states.
|
693 |
#[allow(clippy::cast_possible_wrap)]
|
694 |
#[inline(always)]
|
74 |
#[allow(
|
75 |
clippy::cast_possible_wrap, // byte: u8 as i8
|
76 |
// byte: i32 as u16
|
131 |
#[allow(
|
132 |
clippy::cast_possible_wrap, // byte: 0x80_u8 as i8
|
133 |
)]
|
131 |
/// Whether the byte is a leading byte in UTF-8 (`0x00..=0x7F`, `0xC0..=0xFF`).
|
132 |
#[allow(clippy::cast_possible_wrap)] // the wrap is intentional.
|
133 |
fn is_utf8_leading_byte(b: u8) -> bool {
|
177 |
let (mut input, placing, start, length) = args_4(span, args, None, None, None, Some(None))?;
|
178 |
#[allow(clippy::cast_possible_wrap)] // length will never > isize::MAX.
|
179 |
let length = length.unwrap_or_else(|| self.0.length_of(&placing) as isize);
|
454 |
#[cfg(not(tarpaulin_include))]
|
455 |
#[allow(clippy::cast_possible_wrap)]
|
456 |
const fn shuffle(z: u32, y: u32, x: u32, w: u32) -> i32 {
|
37 |
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
|
38 |
#[allow(clippy::cast_possible_wrap, clippy::cast_sign_loss)]
|
39 |
pub const fn i32x2_to_i32(x: i32, y: i32) -> i32 {
|
715 |
// Checked: we want to reinterpret the bits
|
716 |
#[allow(clippy::cast_possible_wrap)]
|
717 |
{
|
757 |
// Checked: we want to reinterpret the bits
|
758 |
#[allow(clippy::cast_possible_wrap)]
|
759 |
storeu(
|
819 |
clippy::cast_sign_loss,
|
820 |
clippy::cast_possible_wrap
|
821 |
)]
|
909 |
clippy::cast_sign_loss,
|
910 |
clippy::cast_possible_wrap
|
911 |
)]
|
91 |
/// No errors should be possible. The message would panic if allocation fails.
|
92 |
#[allow(clippy::cast_possible_wrap)]
|
93 |
#[allow(clippy::cast_possible_truncation)]
|
120 |
/// ```
|
121 |
#[allow(clippy::cast_possible_wrap)]
|
122 |
pub fn roll_dice_from_rng<R: Rng + Sized>(&self, mut rng: R) -> RollResult {
|
50 |
/// ```
|
51 |
#[allow(clippy::cast_possible_wrap)]
|
52 |
pub fn roll_dice_set_from_rng<R: Rng + Sized>(&self, mut rng: R) -> DiceSetResults {
|
121 |
// Wrap-around is only possible with implausibly large maps.
|
122 |
#[allow(clippy::cast_possible_wrap)]
|
123 |
CardinalDirection::North => {
|
126 |
// Wrap-around is only possible with implausibly large maps.
|
127 |
#[allow(clippy::cast_possible_wrap)]
|
128 |
CardinalDirection::East => (
|
132 |
// Wrap-around is only possible with implausibly large maps.
|
133 |
#[allow(clippy::cast_possible_wrap)]
|
134 |
CardinalDirection::South => (
|
138 |
// Wrap-around is only possible with implausibly large maps.
|
139 |
#[allow(clippy::cast_possible_wrap)]
|
140 |
CardinalDirection::West => {
|
147 |
// Wrap-around is only possible with implausibly large maps.
|
148 |
#[allow(clippy::cast_possible_wrap)]
|
149 |
let output = self.position
|
28 |
// Wrap-around is only possible with implausibly large maps.
|
29 |
#[allow(clippy::cast_possible_wrap)]
|
30 |
let output = self.position().y() + (self.height() as Coord - 1).max(0);
|
28 |
// Wrap-around is only possible with implausibly large maps.
|
29 |
#[allow(clippy::cast_possible_wrap)]
|
30 |
let output = self.position().x() + (self.width() as Coord - 1).max(0);
|
30 |
// Only a problem on implausibly large maps.
|
31 |
#[allow(clippy::cast_possible_wrap)]
|
32 |
let mut local_pos = Position::new(self.local_pos_x as i32, self.local_pos_y as i32);
|
33 |
#[allow(clippy::cast_possible_wrap)]
|
34 |
while !self.target.intersects_local_position(local_pos) {
|
186 |
// Wrap-around is only possible with implausibly large maps.
|
187 |
#[allow(clippy::cast_possible_wrap)]
|
188 |
CardinalRotation::Right90 => Position::new(0, (self.area().width() as i32 - 1).max(0)),
|
189 |
// Wrap-around is only possible with implausibly large maps.
|
190 |
#[allow(clippy::cast_possible_wrap)]
|
191 |
CardinalRotation::Full180 => Position::new(
|
195 |
// Wrap-around is only possible with implausibly large maps.
|
196 |
#[allow(clippy::cast_possible_wrap)]
|
197 |
CardinalRotation::Left90 => Position::new((self.area().height() as i32 - 1).max(0), 0),
|
396 |
Edn::Int(i) => Some(*i as isize),
|
397 |
#[allow(clippy::cast_possible_wrap)]
|
398 |
Edn::UInt(u) if isize::try_from(*u).is_ok() => Some(*u as isize),
|
49 |
winuser::GWL_STYLE,
|
50 |
#[allow(clippy::cast_possible_wrap)]
|
51 |
{
|
261 |
}
|
262 |
#[allow(clippy::cast_possible_wrap)]
|
263 |
Marker::I8 => {
|
99 |
}
|
100 |
#[allow(clippy::cast_possible_wrap)]
|
101 |
8 => {
|
49 |
/// Construct a msgpack marker from a single byte.
|
50 |
#[allow(clippy::cast_possible_wrap)]
|
51 |
pub const fn from_u8(n: u8) -> Marker {
|
73 |
#[inline]
|
74 |
#[allow(clippy::cast_possible_wrap, clippy::cast_possible_truncation)]
|
75 |
fn read(bytes: &[u8], pos: &mut usize) -> Result<Self, ReadError> {
|
6 |
#[inline]
|
7 |
#[allow(clippy::cast_possible_wrap)]
|
8 |
pub fn current_time_point() -> TimePoint {
|
29 |
#[inline]
|
30 |
#[allow(clippy::cast_possible_wrap)]
|
31 |
pub fn publication() -> TimePoint {
|
36 |
#[allow(clippy::cast_possible_wrap)]
|
37 |
pub(crate) fn fixed_from_gregorian(year: i32, month: u32, day: u32) -> i32 {
|
37 |
impl TtlCache {
|
38 |
#[allow(clippy::cast_possible_wrap)]
|
39 |
pub async fn create(
|
89 |
}
|
90 |
#[allow(clippy::cast_possible_wrap)]
|
91 |
pub async fn set<V: Serialize>(&self, key: &str, value: &V) -> EResult<()> {
|
533 |
#[allow(clippy::cast_possible_wrap)]
|
534 |
#[allow(clippy::implicit_hasher)]
|
56 |
#[allow(clippy::cast_possible_truncation, clippy::cast_possible_wrap)]
|
57 |
pub fn print_supported() {
|
13 |
{
|
14 |
#[allow(clippy::cast_possible_wrap)]
|
15 |
let c = Timestamp {
|
276 |
#[allow(clippy::cast_possible_wrap)]
|
277 |
fn is_char_boundary(b: u8) -> bool {
|
90 |
let ret = unsafe {
|
91 |
#[allow(clippy::cast_possible_wrap)] // flag enum value is small enough
|
92 |
ft::FT_Load_Char(self.face, c, flag as ft::FT_Int)
|
257 |
.map_err(|_| Error::Parser(rule_name.to_owned()))?;
|
258 |
#[allow(clippy::cast_possible_wrap)]
|
259 |
Ok(NaiveDate::from_ymd(mdy[2] as i32, mdy[0], mdy[1]))
|
282 |
let year = date.year() + (months / 12);
|
283 |
#[allow(clippy::cast_possible_wrap)]
|
284 |
let month = (date.month() as i32 + (months % 12)) as u32;
|
29 |
#[allow(clippy::cast_possible_wrap)]
|
30 |
pub fn minus(&self, number: usize) -> usize {
|
77 |
/// ```
|
78 |
#[allow(clippy::cast_possible_wrap)]
|
79 |
pub fn roll_dice_from_rng<R: Rng + Sized>(&self, mut rng: R) -> RollResult {
|
50 |
/// ```
|
51 |
#[allow(clippy::cast_possible_wrap)]
|
52 |
pub fn roll_dice_set_from_rng<R: Rng + Sized>(&self, mut rng: R) -> DiceSetResults {
|
110 |
)]
|
111 |
#[allow(clippy::cast_possible_wrap)]
|
112 |
fn build_view_data(#[case] width: usize, #[case] height: usize, #[case] expected: &str) {
|
270 |
/// it should return the element to include in the return value.
|
271 |
#[allow(clippy::cast_sign_loss, clippy::cast_possible_wrap)]
|
272 |
fn longest_common_subsequence<T: PartialEq + Clone>(
|
43 |
fn sendfile_native(file: &mut File, offset: u64, length: usize, output: &mut File) -> Result<u64> {
|
44 |
#[allow(clippy::cast_possible_wrap)]
|
45 |
let mut offset: off64_t = offset as off64_t;
|
119 |
match self {
|
120 |
#[allow(clippy::cast_possible_wrap)] // because out number can't be so big
|
121 |
Self::Dice(dice) => dice.value() as i64,
|
77 |
#[allow(
|
78 |
clippy::cast_possible_wrap, // byte: u8 as i8
|
79 |
// byte: i32 as u16
|
134 |
#[allow(
|
135 |
clippy::cast_possible_wrap, // byte: 0x80_u8 as i8
|
136 |
)]
|
74 |
#[allow(
|
75 |
clippy::cast_possible_wrap, // byte: u8 as i8
|
76 |
// byte: i32 as u16
|
131 |
#[allow(
|
132 |
clippy::cast_possible_wrap, // byte: 0x80_u8 as i8
|
133 |
)]
|
170 |
#[allow(clippy::cast_possible_truncation)]
|
171 |
#[allow(clippy::cast_possible_wrap)]
|
172 |
pub fn emit(
|
32 |
#[allow(clippy::cast_possible_truncation)]
|
33 |
#[allow(clippy::cast_possible_wrap)]
|
34 |
w.write_i16::<LittleEndian>(self.0.len() as i16)?;
|
606 |
#[allow(clippy::cast_possible_truncation)]
|
607 |
#[allow(clippy::cast_possible_wrap)]
|
608 |
fn emit_length_and_bytes(v: &[u8], w: &mut dyn std::io::Write) -> std::io::Result<()> {
|
125 |
#[allow(clippy::cast_possible_truncation)]
|
126 |
#[allow(clippy::cast_possible_wrap)]
|
127 |
fn emit_length_and_bytes(v: &[u8], w: &mut dyn std::io::Write) -> std::io::Result<()> {
|
18 |
pub(crate) fn set_flags(&mut self, flag: Flags) {
|
19 |
#[allow(clippy::cast_possible_wrap)]
|
20 |
self.insert(XatOptionId::Flags, OptionValue::INT(flag.bits() as i32));
|
48 |
#[allow(clippy::cast_possible_truncation)]
|
49 |
#[allow(clippy::cast_possible_wrap)]
|
50 |
pub fn emit(
|
88 |
impl ToTransactionDataProtobuf for PaymentTransactionData {
|
89 |
#[allow(clippy::cast_possible_wrap)]
|
90 |
fn to_transaction_data_protobuf(
|
338 |
#[allow(clippy::cast_possible_wrap)]
|
339 |
/// Retrieves all [`Hex`] around `self` in a given `range`
|
354 |
#[must_use]
|
355 |
#[allow(clippy::cast_possible_wrap)]
|
356 |
/// Retrieves one [`Hex`] ring around `self` in a given `range`.
|
387 |
#[must_use]
|
388 |
#[allow(clippy::cast_possible_wrap)]
|
389 |
/// Retrieves one [`Hex`] ring around `self` in a given `range`.
|
483 |
#[must_use]
|
484 |
#[allow(clippy::cast_possible_wrap)]
|
485 |
pub const fn wraparound_mirrors(radius: u32) -> [Self; 6] {
|
83 |
/// To offset the map, apply the offset to each `Item` of the returned iterator
|
84 |
#[allow(clippy::cast_possible_wrap)]
|
85 |
pub fn triangle(size: u32) -> impl Iterator<Item = Hex> {
|
720 |
#[cfg(feature = "streams")]
|
721 |
#[allow(clippy::cast_possible_wrap, clippy::cast_possible_truncation)]
|
722 |
fn stream_endpoint<'a>(
|
423 |
#[cfg(feature = "streams")]
|
424 |
#[allow(clippy::cast_possible_wrap, clippy::cast_possible_truncation)]
|
425 |
fn stream_channel_video_type(
|
81 |
#[allow(
|
82 |
clippy::cast_possible_wrap, // byte: u8 as i8
|
83 |
// byte: i32 as u16
|
393 |
needle_arr[..needle.len()].copy_from_slice(needle);
|
394 |
#[allow(clippy::cast_possible_truncation, clippy::cast_possible_wrap)]
|
395 |
jetscii::Bytes::new(needle_arr, needle.len() as i32, |b| needle.contains(&b)).find(haystack)
|
119 |
// we intentionally wrap here
|
120 |
#[allow(clippy::cast_possible_wrap)]
|
121 |
const fn is_char_start(byte: u8) -> bool {
|
51 |
pub fn size(&self) -> Size {
|
52 |
#[allow(clippy::cast_possible_wrap)]
|
53 |
let width = self.canvas.width() as i32;
|
54 |
#[allow(clippy::cast_possible_wrap)]
|
55 |
let height = self.canvas.height() as i32;
|
218 |
impl TileProvider for PersistentTileProvider {
|
219 |
#[allow(clippy::cast_possible_wrap, clippy::cast_sign_loss)]
|
220 |
fn tile(&mut self, location: Point<i32>) -> Option<Tile<'_>> {
|
364 |
#[allow(clippy::cast_possible_wrap, clippy::cast_sign_loss)]
|
365 |
fn next_frame(&mut self) -> crate::Result<usize> {
|
36 |
/// `isize::MAX`, inclusive.
|
37 |
#[allow(clippy::cast_possible_wrap)]
|
38 |
unsafe fn inner<T>(n: usize, x: *const T, inc_x: isize, y: *const T, inc_y: isize) -> T
|
3 |
#[allow(
|
4 |
clippy::cast_possible_wrap,
|
5 |
clippy::similar_names,
|
4 |
#[allow(clippy::cast_possible_wrap)]
|
5 |
pub(crate) unsafe fn iamax<A>(n: usize, x: *const A, incx: isize) -> (usize, A::Real)
|
4 |
#[allow(clippy::cast_possible_wrap)]
|
5 |
pub unsafe fn trsm<A>(a: *const A, row_stride: isize, col_stride: isize, mut b: ArrayViewMut2<A>)
|
41 |
/// * `pivots.len()` must be greater than or equal to the smaller dimension of `a`.
|
42 |
#[allow(clippy::cast_possible_wrap)] // The number of elements in the matrix does not exceed `isize::MAX`.
|
43 |
unsafe fn getrf_row_major<A: Scalar>(
|
122 |
/// * Every element of `pivots` must be a valid row index for `a`.
|
123 |
#[allow(clippy::cast_possible_wrap)] // The number of elements in the matrix does not exceed `isize::MAX`.
|
124 |
#[allow(clippy::too_many_lines)]
|
212 |
#[allow(clippy::cast_possible_wrap)]
|
213 |
unsafe fn recursive_inner<A>(mut a: ArrayViewMut2<A>, pivots: &mut [usize]) -> Result<(), Singular>
|
3 |
#[allow(clippy::cast_possible_wrap)]
|
4 |
pub unsafe fn laswp<T>(
|
396 |
#[allow(clippy::cast_ptr_alignment)]
|
397 |
#[allow(clippy::cast_possible_wrap)]
|
398 |
pub fn get_num_logical_cpus_ex_windows() -> Option<usize> {
|
45 |
const FORKSRV_FD: i32 = 198;
|
46 |
#[allow(clippy::cast_possible_wrap)]
|
47 |
const FS_OPT_ENABLED: i32 = 0x80000001_u32 as i32;
|
48 |
#[allow(clippy::cast_possible_wrap)]
|
49 |
const FS_OPT_MAPSIZE: i32 = 0x40000000_u32 as i32;
|
50 |
#[allow(clippy::cast_possible_wrap)]
|
51 |
const FS_OPT_SHDMEM_FUZZ: i32 = 0x01000000_u32 as i32;
|
52 |
#[allow(clippy::cast_possible_wrap)]
|
53 |
const FS_OPT_AUTODICT: i32 = 0x10000000_u32 as i32;
|
148 |
#[allow(trivial_numeric_casts, clippy::cast_possible_wrap)]
|
149 |
fn setlimit(&mut self, memlimit: u64) -> &mut Self {
|
184 |
#[allow(clippy::unused_self)]
|
185 |
#[allow(clippy::cast_possible_wrap)]
|
186 |
pub fn update_accounting_score(
|
192 |
#[allow(clippy::unused_self)]
|
193 |
#[allow(clippy::cast_possible_wrap)]
|
194 |
pub fn update_score(&self, state: &mut CS::State, idx: CorpusId) -> Result<(), Error> {
|
106 |
/// Runs this (mutational) stage for the given testcase
|
107 |
#[allow(clippy::cast_possible_wrap)] // more than i32 stages on 32 bit system - highly unlikely...
|
108 |
fn perform_mutational(
|
74 |
#[allow(clippy::cast_possible_wrap)]
|
75 |
fn perform_mutational(
|
1141 |
#[allow(clippy::cast_possible_wrap)]
|
1142 |
let mut fault_address =
|
1884 |
#[allow(clippy::similar_names)]
|
1885 |
#[allow(clippy::cast_possible_wrap)]
|
1886 |
#[allow(clippy::too_many_lines)]
|
1973 |
#[allow(clippy::similar_names)] // We allow things like dword and qword
|
1974 |
#[allow(clippy::cast_possible_wrap)]
|
1975 |
#[allow(clippy::too_many_lines)]
|
2495 |
);
|
2496 |
#[allow(clippy::cast_possible_wrap)]
|
2497 |
let redzone_size = frida_gum_sys::GUM_RED_ZONE_SIZE as i32;
|
51 |
#[cfg(all(feature = "cmplog", target_arch = "aarch64"))]
|
52 |
#[allow(clippy::cast_possible_wrap)]
|
53 |
fn gum_red_zone_size_i32() -> i32 {
|
695 |
envp.push(null());
|
696 |
#[allow(clippy::cast_possible_wrap)]
|
697 |
let argc = argv.len() as i32;
|
732 |
#[must_use]
|
733 |
#[allow(clippy::cast_possible_wrap)]
|
734 |
#[allow(clippy::cast_sign_loss)]
|
749 |
#[must_use]
|
750 |
#[allow(clippy::cast_possible_wrap)]
|
751 |
pub fn cpu_from_index(&self, index: usize) -> CPU {
|
24 |
assert!(argv.len() < i32::MAX as usize);
|
25 |
#[allow(clippy::cast_possible_wrap)]
|
26 |
let argc = argv.len() as i32;
|
362 |
#[allow(clippy::cast_possible_wrap)]
|
363 |
#[allow(clippy::cast_possible_truncation)]
|
413 |
#[allow(clippy::cast_possible_wrap)]
|
414 |
#[allow(clippy::cast_possible_truncation)]
|
262 |
// This is intentional.
|
263 |
#[allow(clippy::cast_possible_wrap)]
|
264 |
let casted_size = size as i64;
|
312 |
/// triggers, for example. The default value is NULL.
|
313 |
#[cfg_attr(feature = "cargo-clippy", allow(cast_possible_wrap))]
|
314 |
pub fn get_app_context(&self) -> Result<Vec<AppContext>> {
|
405 |
}
|
406 |
#[allow(clippy::cast_possible_wrap)]
|
407 |
fn dates(m: &Mod) -> EmbedField {
|
133 |
// if time wraps we have another problem.
|
134 |
#[allow(clippy::cast_possible_wrap)]
|
135 |
let db_when = when as i64;
|
155 |
// if time wraps we have another problem.
|
156 |
#[allow(clippy::cast_possible_wrap)]
|
157 |
let db_when = when as i64;
|
204 |
// if it wraps, that is fine.
|
205 |
#[allow(clippy::cast_possible_wrap)]
|
206 |
let t_id = t_id as i64;
|
218 |
// if it wraps, that is fine.
|
219 |
#[allow(clippy::cast_possible_wrap)]
|
220 |
let t_id = t_id as i64;
|
100 |
// If time wraps we have a bigger problem...
|
101 |
#[allow(clippy::cast_possible_wrap)]
|
102 |
Ok(n) => n.as_secs() as i64,
|
426 |
// if it wraps its ok, then time is far ahead
|
427 |
#[allow(clippy::cast_possible_wrap)]
|
428 |
let new_when = when as i64;
|
22 |
// Legacy type was u64, but we want i64 in the database due to SQLite.
|
23 |
#[allow(clippy::cast_sign_loss, clippy::cast_possible_wrap)]
|
24 |
Self {
|
33 |
// Legacy type for timestamp was u64, but we want i64 in the database due to SQLite.
|
34 |
#[allow(clippy::cast_sign_loss, clippy::cast_possible_wrap)]
|
35 |
Self {
|
77 |
// interface.
|
78 |
#[allow(clippy::cast_sign_loss, clippy::cast_possible_wrap)]
|
79 |
Self {
|
448 |
#[inline]
|
449 |
#[allow(clippy::cast_possible_wrap)]
|
450 |
fn new(amount: AmountT, unit: Self::UnitType) -> Self {
|
725 |
#[test]
|
726 |
#[allow(clippy::cast_possible_wrap)]
|
727 |
fn test_money_exceed_minor_unit() {
|
114 |
#[allow(clippy::cast_possible_wrap)]
|
115 |
pub const RLIM_INFINITY: rlim_t = ((1_u64 << 63) - 1) as rlim_t;
|
350 |
// load the transaction at this location
|
351 |
#[allow(clippy::cast_possible_wrap)]
|
352 |
let scan_forward = guessed_location >= upper_location;
|
63 |
#[allow(clippy::cast_possible_wrap)]
|
64 |
#[allow(clippy::expect_used)]
|
40 |
/// Sign extend the payload from something less than 8 bits to a full byte.
|
41 |
#[allow(clippy::cast_possible_wrap)]
|
42 |
const fn decode_small_int(b: u8) -> i8 {
|
133 |
/// Helper for `read_value_header()`.
|
134 |
#[allow(clippy::cast_possible_wrap, clippy::map_err_ignore)]
|
135 |
fn read_big_value_header(tag: u8, buf: &[u8]) -> Result<ValueHeader, Error> {
|
874 |
}
|
875 |
#[allow(clippy::cast_possible_wrap)]
|
876 |
for (((d, &start), &count), &stride) in self
|
1101 |
}
|
1102 |
#[allow(clippy::cast_possible_wrap)]
|
1103 |
let end = start as isize + (count as isize - 1) * stride;
|
17 |
/// Creates a new [`HostingResult`] from the raw status code.
|
18 |
#[allow(clippy::cast_possible_wrap)]
|
19 |
pub fn from_status_code(code: u32) -> Self {
|
100 |
impl From<HostingResult> for i32 {
|
101 |
#[allow(clippy::cast_possible_wrap)]
|
102 |
fn from(code: HostingResult) -> Self {
|
100 |
/// If the API u32 -> i32 fails this will error
|
101 |
#[allow(clippy::cast_possible_wrap)]
|
102 |
pub fn new(index: &CameraIndex, cam_fmt: RequestedFormat) -> Result<Self, NokhwaError> {
|
482 |
#[allow(clippy::cast_possible_wrap)]
|
483 |
fn open_stream(&mut self) -> Result<(), NokhwaError> {
|
605 |
#[allow(clippy::cast_possible_wrap)]
|
606 |
fn camera_controls(&self) -> Result<Vec<CameraControl>, NokhwaError> {
|
115 |
#[cfg_attr(feature = "docs-features", doc(cfg(feature = "opencv-mat")))]
|
116 |
#[allow(clippy::cast_possible_wrap)]
|
117 |
pub fn decode_opencv_mat<F: FormatDecoder>(
|
153 |
}
|
154 |
#[allow(clippy::cast_possible_wrap)]
|
155 |
RequestedFormatType::Closest(c) => {
|
104 |
#[allow(clippy::cast_possible_wrap)]
|
105 |
#[allow(clippy::cast_sign_loss)]
|
58 |
// Cast is safe here because SSLOptions are within the i32 range
|
59 |
#[allow(clippy::cast_possible_wrap)]
|
60 |
pub(crate) fn as_int(self) -> PRInt32 {
|
286 |
pub fn get_app_context(&self) -> Vec<AppContext> {
|
287 |
#[cfg_attr(feature = "cargo-clippy", allow(cast_possible_wrap))]
|
288 |
let len = self.conn.num_app_context as isize;
|
239 |
#[allow(clippy::cast_possible_truncation, clippy::cast_possible_wrap)] // Impossible, since the RegEx limits length
|
240 |
fn parse_component(val: &str) -> Result<f64, ()> {
|
366 |
#[allow(clippy::cast_possible_truncation, clippy::cast_possible_wrap)]
|
367 |
let xauthdata = XAuthData {
|
78 |
#[cfg(not(target_os = "solaris"))]
|
79 |
#[allow(clippy::cast_possible_wrap)]
|
80 |
const fn max_msg_num() -> isize {
|
85 |
#[cfg(target_os = "solaris")]
|
86 |
#[allow(clippy::cast_possible_wrap)]
|
87 |
const fn max_msg_num() -> isize {
|
43 |
#[must_use]
|
44 |
#[allow(clippy::cast_possible_wrap, clippy::cast_sign_loss)]
|
45 |
pub fn move_in_direction(
|
275 |
}
|
276 |
#[allow(clippy::cast_possible_wrap)]
|
277 |
if exp_minus {
|
396 |
parse_column!(get_text, ATOM_COMP_ID).expect("Residue name should be provided");
|
397 |
#[allow(clippy::cast_possible_wrap)]
|
398 |
let residue_number = parse_column!(get_isize, ATOM_AUTH_SEQ_ID).unwrap_or_else(|| {
|
8 |
clippy::comparison_chain,
|
9 |
clippy::cast_possible_wrap,
|
10 |
clippy::cast_sign_loss
|
797 |
clippy::transmutes_expressible_as_ptr_casts,
|
798 |
clippy::cast_possible_wrap
|
799 |
)]
|
508 |
// clippy::checked_conversions: try_from isn't const, and it would demote this from a const fn.
|
509 |
#[allow(clippy::cast_possible_wrap)]
|
510 |
#[allow(clippy::checked_conversions)]
|
541 |
/// Returns the contained value as an i16, or an error if the value is unable to fit.
|
542 |
#[allow(clippy::cast_possible_wrap)]
|
543 |
#[allow(clippy::checked_conversions)]
|
594 |
/// Returns the contained value as an i32, or an error if the value is unable to fit.
|
595 |
#[allow(clippy::cast_possible_wrap)]
|
596 |
#[allow(clippy::checked_conversions)]
|
653 |
/// Returns the contained value as an i64, or an error if the value is unable to fit.
|
654 |
#[allow(clippy::cast_possible_wrap)]
|
655 |
#[allow(clippy::checked_conversions)]
|
676 |
/// Returns the contained value as an i64, or an error if the value is unable to fit.
|
677 |
#[allow(clippy::cast_possible_wrap)]
|
678 |
pub const fn as_i128(&self) -> Result<i128, Error> {
|
111 |
let test = 4_i32;
|
112 |
#[allow(clippy::cast_possible_wrap)]
|
113 |
let handle = (std::process::id() as crate::Pid)
|
128 |
let test = 3_i64;
|
129 |
#[allow(clippy::cast_possible_wrap)]
|
130 |
let handle = (std::process::id() as crate::Pid)
|
145 |
let test = 0_usize;
|
146 |
#[allow(clippy::cast_possible_wrap)]
|
147 |
let handle = (std::process::id() as crate::Pid)
|
28 |
fn try_into_process_handle(&self) -> std::io::Result<ProcessHandle> {
|
29 |
#[allow(clippy::cast_possible_wrap)]
|
30 |
Ok((self.id() as Pid, Architecture::from_native()))
|
52 |
fn try_into_process_handle(&self) -> std::io::Result<ProcessHandle> {
|
53 |
#[allow(clippy::cast_possible_wrap)]
|
54 |
Pid::try_into_process_handle(&(self.id() as _))
|
537 |
// Allowed because we are already assuming *nix
|
538 |
#[allow(clippy::cast_possible_wrap)]
|
539 |
#[cfg(unix)]
|
692 |
// Allowed because we are already assuming *nix
|
693 |
#[allow(clippy::cast_possible_wrap)]
|
694 |
#[cfg(unix)]
|
483 |
fn r_pylong(p: &mut RFile<impl Read>) -> Result<BigInt> {
|
484 |
#[allow(clippy::cast_possible_wrap)]
|
485 |
let n = r_long(p)? as i32;
|
575 |
};
|
576 |
#[allow(clippy::cast_possible_wrap)]
|
577 |
let retval = match type_ {
|
100 |
fn r_pylong(p: &mut RFile<impl Read>) -> ParseResult<BigInt> {
|
101 |
#[allow(clippy::cast_possible_wrap)]
|
102 |
let n = r_long(p)? as i32;
|
195 |
};
|
196 |
#[allow(clippy::cast_possible_wrap)]
|
197 |
let retval = match type_ {
|
175 |
#[allow(clippy::cast_possible_wrap)]
|
176 |
impl TryFrom<Buffer> for Register {
|
21 |
/// Returns the version number of the code, in the range `1...40`.
|
22 |
#[cfg_attr(feature = "cargo-clippy", allow(cast_possible_truncation, cast_possible_wrap))]
|
23 |
pub fn version(&self) -> u8 {
|
27 |
/// Returns the mask ID of the code, in the range `0...7`.
|
28 |
#[cfg_attr(feature = "cargo-clippy", allow(cast_possible_truncation, cast_possible_wrap))]
|
29 |
pub fn mask_id(&self) -> u8 {
|
33 |
/// Returns the ECI assignment number, in the range `0...30`.
|
34 |
#[cfg_attr(feature = "cargo-clippy", allow(cast_possible_truncation, cast_possible_wrap))]
|
35 |
pub fn eci(&self) -> u8 {
|
8 |
/// Attempts to convert a `usize` to an `int` without overflow.
|
9 |
#[cfg_attr(feature = "cargo-clippy", allow(if_same_then_else, cast_possible_truncation, cast_possible_wrap))]
|
10 |
pub fn usize_to_int(n: usize) -> Result<c_int> {
|
20 |
/// Attempts to convert an `int` to a `usize` without under- or overflow.
|
21 |
#[cfg_attr(feature = "cargo-clippy", allow(if_same_then_else, cast_possible_truncation, cast_possible_wrap))]
|
22 |
pub fn int_to_usize(n: c_int) -> Result<usize> {
|
47 |
pub const fn wrapping_offset_to_value(offset: u32, base: i32) -> i32 {
|
48 |
#[allow(clippy::cast_possible_wrap)]
|
49 |
match offset <= (i32::max_value() as u32) {
|
12 |
#[allow(clippy::cast_possible_wrap, clippy::cast_sign_loss)]
|
13 |
match overflow {
|
300 |
#[allow(clippy::cast_possible_wrap)]
|
301 |
let xxh_i64 = 0u64.wrapping_sub(seed) as i64;
|
302 |
#[allow(clippy::cast_possible_wrap)]
|
303 |
let seed = seed as i64;
|
311 |
#[allow(clippy::cast_possible_wrap)]
|
312 |
fn inplace_discounted_cumsum_from_end<I, T>(
|
45 |
/// Iterates over `&iovec` stored in this `SgList`
|
46 |
#[allow(clippy::cast_sign_loss, clippy::cast_possible_wrap)]
|
47 |
pub unsafe fn iter(&self) -> impl Iterator<Item = &iovec> {
|
51 |
#[allow(clippy::cast_sign_loss, clippy::cast_possible_wrap)]
|
52 |
pub unsafe fn into_iter(self) -> impl Iterator<Item = iovec> {
|
349 |
#[allow(clippy::cast_possible_truncation)]
|
350 |
#[allow(clippy::cast_possible_wrap)]
|
351 |
proc_listallpids(
|
379 |
#[allow(clippy::cast_possible_truncation)]
|
380 |
#[allow(clippy::cast_possible_wrap)]
|
381 |
proc_pidfdinfo(
|
101 |
#[allow(clippy::cast_possible_truncation)]
|
102 |
#[allow(clippy::cast_possible_wrap)]
|
103 |
unsafe {
|
219 |
#[allow(clippy::cast_precision_loss, clippy::cast_possible_wrap)]
|
220 |
impl<F: IntoFill> Line<F> {
|
562 |
#[allow(clippy::cast_precision_loss, clippy::cast_possible_wrap)]
|
563 |
impl<F: IntoFill> Polygon<F> {
|
1168 |
// Used when there is no border
|
1169 |
#[allow(clippy::cast_possible_wrap)]
|
1170 |
fn rasterize_filled_circle(&self, image: &mut Image<F::Pixel>) {
|
1211 |
// Used when there is no border
|
1212 |
#[allow(clippy::cast_possible_wrap, clippy::cast_precision_loss)]
|
1213 |
fn rasterize_filled_ellipse(&self, image: &mut Image<F::Pixel>) {
|
1280 |
// Standard, slower brute force algorithm that iterates through all pixels
|
1281 |
#[allow(clippy::cast_possible_wrap)]
|
1282 |
fn render_circle(&self, image: &mut Image<F::Pixel>) {
|
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 {
|
19 |
// It is safe even if the return value is wrong.
|
20 |
#[allow(clippy::cast_possible_wrap, clippy::cast_sign_loss)]
|
21 |
unsafe {
|
688 |
fn new(node: &Node<T, P>, backwards: bool) -> IterStackElement<'_, T, P> {
|
689 |
#[allow(clippy::cast_possible_wrap)]
|
690 |
IterStackElement { node, index: if backwards { node.used() as isize - 1 } else { 0 } }
|
67 |
#[allow(clippy::cast_possible_wrap)]
|
68 |
const UCI_OK: i32 = libuci_sys::UCI_OK as i32;
|
58 |
#[allow(clippy::cast_possible_wrap)]
|
59 |
fn rewrite(&mut self, start: usize, end: usize, replacement: &str) {
|
26 |
clippy::cast_ptr_alignment,
|
27 |
clippy::cast_possible_wrap,
|
28 |
clippy::if_not_else,
|
74 |
#[cfg_attr(not(feature = "no-inline"), inline(always))]
|
75 |
#[allow(clippy::cast_possible_wrap, clippy::cast_sign_loss)]
|
76 |
fn cmp_mask_against_input(&self, m: u8) -> u64 {
|
177 |
#[allow(
|
178 |
clippy::cast_possible_wrap,
|
179 |
clippy::cast_ptr_alignment,
|
185 |
#[allow(
|
186 |
clippy::cast_possible_wrap,
|
187 |
clippy::cast_ptr_alignment,
|
76 |
clippy::cast_sign_loss,
|
77 |
clippy::cast_possible_wrap,
|
78 |
clippy::cast_precision_loss,
|
224 |
#[inline(never)]
|
225 |
#[allow(clippy::cast_possible_wrap)]
|
226 |
fn parse_large_integer(idx: usize, buf: &[u8], negative: bool) -> Result<StaticNode> {
|
285 |
#[inline(never)]
|
286 |
#[allow(clippy::cast_possible_wrap)]
|
287 |
fn parse_large_integer(idx: usize, buf: &[u8], negative: bool) -> Result<StaticNode> {
|
358 |
clippy::cast_precision_loss,
|
359 |
clippy::cast_possible_wrap,
|
360 |
clippy::too_many_lines
|
36 |
unused_unsafe,
|
37 |
clippy::cast_possible_wrap,
|
38 |
clippy::cast_possible_truncation,
|
177 |
#[cold]
|
178 |
#[allow(clippy::cast_possible_wrap)]
|
179 |
fn parse_large_integer(start_idx: usize, buf: &[u8], negative: bool) -> Result<StaticNode> {
|
16 |
#[allow(clippy::too_many_arguments)]
|
17 |
#[allow(clippy::cast_possible_wrap)]
|
18 |
unsafe fn from_32_cut_off_leading(
|
59 |
#[allow(clippy::too_many_arguments)]
|
60 |
#[allow(clippy::cast_possible_wrap)]
|
61 |
unsafe fn repeat_16(
|
133 |
#[inline]
|
134 |
#[allow(clippy::cast_possible_wrap)]
|
135 |
unsafe fn splat(val: u8) -> Self {
|
139 |
#[inline]
|
140 |
#[allow(clippy::cast_possible_wrap)]
|
141 |
unsafe fn splat0() -> Self {
|
19 |
#[allow(clippy::too_many_arguments)]
|
20 |
#[allow(clippy::cast_possible_wrap)]
|
21 |
#[allow(clippy::cast_ptr_alignment)]
|
63 |
#[allow(clippy::too_many_arguments)]
|
64 |
#[allow(clippy::cast_possible_wrap)]
|
65 |
#[allow(clippy::cast_ptr_alignment)]
|
126 |
#[inline]
|
127 |
#[allow(clippy::cast_possible_wrap)]
|
128 |
unsafe fn splat(val: u8) -> Self {
|
132 |
#[inline]
|
133 |
#[allow(clippy::cast_possible_wrap)]
|
134 |
unsafe fn splat0() -> Self {
|
62 |
) -> Self {
|
63 |
#[allow(clippy::cast_possible_wrap)]
|
64 |
Self::from(_mm256_setr_epi8(
|
91 |
) -> Self {
|
92 |
#[allow(clippy::cast_possible_wrap)]
|
93 |
Self::from_32_cut_off_leading(
|
287 |
#[inline(always)]
|
288 |
#[allow(clippy::inline_always, clippy::cast_possible_wrap)]
|
289 |
pub fn i128_from_u128(u: u128) -> i128 {
|
23 |
#[allow(clippy::cast_possible_wrap, clippy::cast_possible_truncation)]
|
24 |
impl From<EntryAndIntermediateExcerpts> for Result {
|
1 |
#![allow(clippy::cast_sign_loss, unused, clippy::cast_possible_wrap)]
|
50 |
#[allow(clippy::cast_possible_wrap)]
|
51 |
BlockLocation::new(i32::from(x) + start_x, y as i16, i32::from(z) + start_z)
|
1400 |
/// [Github issue]: https://github.com/rust-lang/rust/issues/72599
|
1401 |
#[allow(clippy::cast_sign_loss, clippy::cast_possible_wrap)]
|
1402 |
fn f64_total_ordering(left: f64, right: f64) -> Ordering {
|
189 |
#[allow(
|
190 |
clippy::cast_possible_wrap,
|
191 |
clippy::cast_possible_truncation,
|
300 |
#[allow(
|
301 |
clippy::cast_possible_wrap,
|
302 |
clippy::cast_possible_truncation,
|
351 |
#[allow(clippy::cast_possible_wrap, clippy::cast_possible_truncation)]
|
352 |
fn lead(s: [usize; 2]) -> (MatrixOp, i32) {
|
44 |
/// If the vectors do not have the same length
|
45 |
#[allow(clippy::cast_possible_wrap, clippy::cast_possible_truncation)]
|
46 |
pub fn dot_using<C: BLASContext<Device = S::Device>>(
|
91 |
#[allow(
|
92 |
clippy::cast_possible_wrap,
|
93 |
clippy::cast_possible_truncation,
|
147 |
/// Vector scaling, using the specified [`BLASContext`]
|
148 |
#[allow(clippy::cast_possible_wrap, clippy::cast_possible_truncation)]
|
149 |
pub fn scale_using<C: BLASContext<Device = S::Device>>(&mut self, alpha: S::T, ctx: C)
|
162 |
#[allow(
|
163 |
clippy::cast_possible_wrap,
|
164 |
clippy::cast_possible_truncation,
|
265 |
#[allow(clippy::cast_sign_loss, clippy::cast_possible_wrap)]
|
266 |
pub fn rotate(&mut self, count: isize) {
|
18 |
impl Default for Rpc {
|
19 |
#[allow(clippy::cast_possible_wrap)]
|
20 |
fn default() -> Self {
|
129 |
#[allow(clippy::cast_possible_wrap)]
|
130 |
pub fn resume(&mut self, time_pos: i64) {
|
195 |
#[allow(clippy::cast_precision_loss)]
|
196 |
#[allow(clippy::cast_possible_wrap)]
|
197 |
fn get_progress(&self) -> Result<()> {
|
313 |
#[allow(clippy::cast_sign_loss)]
|
314 |
#[allow(clippy::cast_possible_wrap)]
|
315 |
fn seek(&mut self, secs: i64) -> Result<()> {
|
336 |
#[allow(clippy::cast_sign_loss)]
|
337 |
#[allow(clippy::cast_possible_wrap)]
|
338 |
fn seek_to(&mut self, last_pos: Duration) {
|
278 |
#[allow(clippy::cast_possible_wrap)]
|
279 |
fn seek_to(&mut self, last_pos: Duration) {
|
85 |
#[allow(
|
86 |
clippy::cast_possible_wrap,
|
87 |
clippy::cast_sign_loss,
|
116 |
#[allow(
|
117 |
clippy::cast_possible_wrap,
|
118 |
clippy::cast_possible_truncation,
|
9 |
clippy::cast_lossless,
|
10 |
clippy::cast_possible_wrap,
|
11 |
clippy::doc_markdown,
|
96 |
#[allow(
|
97 |
clippy::cast_possible_wrap,
|
98 |
clippy::cast_precision_loss,
|
360 |
.count();
|
361 |
#[allow(clippy::cast_possible_wrap)]
|
362 |
let n_missing_lifetime_args =
|
122 |
// let's assume no wrap occurs, otherwise funny debug log
|
123 |
#[allow(clippy::cast_possible_wrap)]
|
124 |
DumpEntry::new(
|
359 |
clippy::cast_sign_loss,
|
360 |
clippy::cast_possible_wrap
|
361 |
)]
|
42 |
// ALLOW: Until we have u64 support in clippy
|
43 |
#[allow(clippy::cast_possible_truncation, clippy::cast_possible_wrap)]
|
44 |
pub fn load(registry: &mut Registry) {
|
19 |
// ALLOW: Until we have u64 support in clippy
|
20 |
#[allow(clippy::cast_possible_truncation, clippy::cast_possible_wrap)]
|
21 |
pub fn load(registry: &mut Registry) {
|
125 |
#[inline]
|
126 |
#[allow(clippy::cast_possible_wrap)]
|
127 |
fn serialize_u64(self, value: u64) -> Result<Value<'static>> {
|
275 |
#[allow(clippy::cast_possible_wrap)]
|
276 |
fn last_modified(&self) -> Result<String, time::ParseError> {
|
59 |
/// ```
|
60 |
#[allow(clippy::cast_possible_wrap)]
|
61 |
fn timestamp(&self) -> i64 {
|
586 |
/// # Errors
|
587 |
#[allow(clippy::cast_possible_wrap)] // casting of unix timestamp should never wrap
|
588 |
pub fn communication_disabled_until(timestamp: Timestamp) -> Result<(), ValidationError> {
|
1150 |
fn communication_disabled_until_max() {
|
1151 |
#[allow(clippy::cast_possible_wrap)]
|
1152 |
let now = SystemTime::now()
|
80 |
/// Should be private but needs to be exposed for the macro to work
|
81 |
#[allow(clippy::cast_possible_wrap)]
|
82 |
#[must_use]
|
10 |
#[allow(clippy::cast_possible_truncation)]
|
11 |
#[allow(clippy::cast_possible_wrap)]
|
12 |
pub(crate) fn utcnow() -> Result<UtcTime> {
|
294 |
#[must_use]
|
295 |
#[allow(clippy::cast_possible_wrap)]
|
296 |
#[const_fn::const_fn("1.56")]
|
257 |
#[inline(always)]
|
258 |
#[allow(clippy::cast_possible_wrap, clippy::cast_ptr_alignment)]
|
259 |
/// Writes a string with simd-acceleration
|
323 |
#[inline(always)]
|
324 |
#[allow(clippy::cast_possible_wrap, clippy::cast_ptr_alignment)]
|
325 |
/// Writes a string with simd-acceleration
|
89 |
#[must_use]
|
90 |
#[allow(clippy::cast_possible_wrap)]
|
91 |
fn from(i: u64) -> Self {
|
91 |
#[allow(clippy::cast_possible_wrap)]
|
92 |
#[inline(always)]
|
128 |
#[allow(clippy::cast_possible_truncation)]
|
129 |
#[allow(clippy::cast_possible_wrap)]
|
130 |
#[inline(always)]
|
62 |
#[allow(clippy::cast_possible_wrap)]
|
63 |
#[inline(always)]
|
102 |
#[allow(clippy::cast_possible_truncation)]
|
103 |
#[allow(clippy::cast_possible_wrap)]
|
104 |
#[inline(always)]
|
14 |
/// This function panics if the supplied width and height does not match the buffer size.
|
15 |
#[allow(clippy::cast_possible_truncation, clippy::cast_possible_wrap)]
|
16 |
#[must_use]
|
280 |
#[allow(clippy::cast_precision_loss)]
|
281 |
#[allow(clippy::cast_possible_wrap)]
|
282 |
#[allow(clippy::cast_sign_loss)]
|
238 |
impl From<W32Error> for io::Error {
|
239 |
#[allow(clippy::cast_possible_wrap)]
|
240 |
fn from(other: W32Error) -> Self {
|
278 |
}
|
279 |
#[allow(clippy::cast_possible_wrap)]
|
280 |
Marker::I8 => {
|
139 |
}
|
140 |
#[allow(clippy::cast_possible_wrap)]
|
141 |
8 => {
|
48 |
/// Construct a msgpack marker from a single byte.
|
49 |
#[allow(clippy::cast_possible_wrap)]
|
50 |
pub const fn from_u8(n: u8) -> Marker {
|
25 |
#[allow(clippy::cast_possible_truncation)]
|
26 |
#[allow(clippy::cast_possible_wrap)]
|
27 |
pub(crate) fn decimal(size: f32, precision: Option<usize>, separator: Option<&str>) -> String {
|
66 |
#[allow(clippy::cast_possible_truncation)]
|
67 |
#[allow(clippy::cast_possible_wrap)]
|
68 |
fn pick_unit_and_suffix(size: u32, suffixes: &[&str], base: u32) -> (u32, String) {
|
58 |
#[allow(clippy::cast_sign_loss)]
|
59 |
#[allow(clippy::cast_possible_wrap)]
|
60 |
fn ratio_resolve<E: HasEdge>(total: u32, edges: &[E]) -> Vec<u32> {
|
152 |
#[allow(clippy::cast_possible_wrap)]
|
153 |
let s1 = (self.s1_count.abs() == self.cfg.s1_lag as isize) as i8 * s1_cross;
|
513 |
// Sizes are small enough
|
514 |
#[allow(clippy::cast_possible_wrap)]
|
515 |
let n = trace_table.num_rows() as isize;
|
517 |
// Sizes are small enough
|
518 |
#[allow(clippy::cast_possible_wrap)]
|
519 |
let trace_blowup = self.trace_blowup as isize;
|
520 |
// Sizes are small enough
|
521 |
#[allow(clippy::cast_possible_wrap)]
|
522 |
let row = (self.row + i) as isize;
|
72 |
// Reductions should be small enough
|
73 |
#[allow(clippy::cast_possible_wrap)]
|
74 |
Trace(
|
344 |
#[inline]
|
345 |
#[allow(clippy::cast_possible_wrap)]
|
346 |
#[target_feature(enable = "avx2")]
|
68 |
clippy::cast_possible_truncation,
|
69 |
clippy::cast_possible_wrap,
|
70 |
clippy::cast_sign_loss,
|
27 |
clippy::cast_possible_truncation,
|
28 |
clippy::cast_possible_wrap,
|
29 |
clippy::cast_sign_loss,
|
13 |
clippy::cast_possible_truncation,
|
14 |
clippy::cast_possible_wrap,
|
15 |
clippy::cast_precision_loss,
|
2 |
#![allow(clippy::cast_sign_loss)]
|
3 |
#![allow(clippy::cast_possible_wrap)]
|
4 |
#![allow(clippy::cast_possible_truncation)]
|
110 |
cast_possible_truncation,
|
111 |
cast_possible_wrap,
|
112 |
cast_sign_loss,
|
326 |
clippy::cast_possible_truncation,
|
327 |
clippy::cast_possible_wrap,
|
328 |
clippy::cast_precision_loss,
|
10 |
// I don't care about this
|
11 |
clippy::cast_possible_wrap,
|
12 |
clippy::cast_sign_loss,
|
11 |
#![allow(
|
12 |
clippy::cast_possible_wrap,
|
13 |
clippy::let_and_return,
|
4 |
#![allow(clippy::cast_possible_truncation)]
|
5 |
#![allow(clippy::cast_possible_wrap)]
|
6 |
#![allow(clippy::cast_precision_loss)]
|
4 |
#![allow(clippy::cast_possible_truncation)]
|
5 |
#![allow(clippy::cast_possible_wrap)]
|
6 |
#![allow(clippy::cast_precision_loss)]
|
13 |
#![allow(clippy::cast_possible_truncation)]
|
14 |
#![allow(clippy::cast_possible_wrap)]
|
15 |
#![allow(clippy::cast_precision_loss)]
|
9 |
#![allow(clippy::too_many_lines)]
|
10 |
#![allow(clippy::cast_possible_wrap)]
|
11 |
#![allow(clippy::if_not_else)]
|
14 |
clippy::cast_possible_truncation,
|
15 |
clippy::cast_possible_wrap,
|
16 |
clippy::cast_precision_loss,
|
41 |
clippy::cast_lossless,
|
42 |
clippy::cast_possible_wrap,
|
43 |
clippy::items_after_statements,
|
47 |
clippy::cast_possible_truncation,
|
48 |
clippy::cast_possible_wrap,
|
49 |
clippy::cast_precision_loss,
|
47 |
clippy::cast_precision_loss,
|
48 |
clippy::cast_possible_wrap,
|
49 |
clippy::cast_ptr_alignment,
|
58 |
clippy::cast_precision_loss,
|
59 |
clippy::cast_possible_wrap,
|
60 |
clippy::cast_ptr_alignment,
|
58 |
clippy::cast_precision_loss,
|
59 |
clippy::cast_possible_wrap,
|
60 |
clippy::cast_ptr_alignment,
|
55 |
clippy::cast_precision_loss,
|
56 |
clippy::cast_possible_wrap,
|
57 |
clippy::cast_ptr_alignment,
|
28 |
pub fn verbose_and_quiet_by_number(offset: isize, min: isize, max: isize) -> impl Parser<isize> {
|
29 |
#![allow(clippy::cast_possible_wrap)]
|
30 |
let verbose = short('v')
|
85 |
) -> impl Parser<T> {
|
86 |
#![allow(clippy::cast_possible_wrap)]
|
87 |
#![allow(clippy::cast_sign_loss)]
|
94 |
#![no_std]
|
95 |
#![allow(clippy::cast_possible_wrap, clippy::cast_sign_loss)]
|
96 |
#![deny(missing_docs)]
|
12 |
#![warn(clippy::cargo)]
|
13 |
#![allow(clippy::cast_possible_wrap)]
|
14 |
#![allow(clippy::inline_always)]
|
444 |
) -> Result<ConstantPoolEntry<'a>, ParseError> {
|
445 |
#![allow(clippy::cast_possible_wrap)] // Wrapping is allowed and desired.
|
446 |
Ok(ConstantPoolEntry::Integer(read_u4(bytes, ix)? as i32))
|
461 |
) -> Result<ConstantPoolEntry<'a>, ParseError> {
|
462 |
#![allow(clippy::cast_possible_wrap)] // Wrapping is allowed and desired.
|
463 |
Ok(ConstantPoolEntry::Long(read_u8(bytes, ix)? as i64))
|
26 |
#![allow(clippy::cast_possible_truncation)]
|
27 |
#![allow(clippy::cast_possible_wrap)]
|
14 |
clippy::cast_possible_truncation,
|
15 |
clippy::cast_possible_wrap,
|
16 |
clippy::cast_precision_loss,
|
5 |
#![allow(clippy::cast_possible_wrap)]
|
47 |
clippy::default_trait_access,
|
48 |
clippy::cast_possible_wrap,
|
49 |
clippy::cast_possible_truncation,
|
15 |
clippy::cast_possible_truncation,
|
16 |
clippy::cast_possible_wrap,
|
17 |
clippy::cast_precision_loss,
|
43 |
clippy::cast_lossless,
|
44 |
clippy::cast_possible_wrap,
|
45 |
clippy::cast_possible_truncation,
|
52 |
cast_lossless,
|
53 |
cast_possible_wrap,
|
54 |
cast_possible_truncation,
|
27 |
clippy::cast_sign_loss,
|
28 |
clippy::cast_possible_wrap,
|
29 |
clippy::module_inception,
|
4 |
clippy::cast_possible_truncation,
|
5 |
clippy::cast_possible_wrap,
|
6 |
clippy::float_cmp,
|
31 |
clippy::cast_possible_truncation,
|
32 |
clippy::cast_possible_wrap,
|
33 |
clippy::cast_sign_loss,
|
14 |
clippy::cast_possible_truncation,
|
15 |
clippy::cast_possible_wrap,
|
16 |
clippy::cast_precision_loss,
|
35 |
clippy::cast_lossless,
|
36 |
clippy::cast_possible_wrap
|
37 |
)]
|
43 |
clippy::bool_to_int_with_if,
|
44 |
clippy::cast_possible_wrap,
|
45 |
clippy::cast_sign_loss,
|
11 |
#![deny(clippy::cargo)]
|
12 |
#![allow(clippy::cast_possible_wrap)]
|
13 |
#![allow(clippy::cast_sign_loss)]
|
4 |
clippy::cast_possible_truncation,
|
5 |
clippy::cast_possible_wrap,
|
6 |
clippy::cast_precision_loss,
|
54 |
clippy::cast_possible_truncation,
|
55 |
clippy::cast_possible_wrap,
|
56 |
clippy::cast_sign_loss,
|
51 |
clippy::cast_possible_truncation,
|
52 |
clippy::cast_possible_wrap,
|
53 |
clippy::cast_sign_loss,
|
6 |
#![warn(clippy::pedantic)]
|
7 |
#![allow(clippy::cast_possible_truncation, clippy::cast_possible_wrap, clippy::similar_names)]
|
1 |
#![allow(clippy::cast_possible_wrap, clippy::cast_possible_truncation)]
|
59 |
// Next `cast_*` lints don't give alternatives.
|
60 |
clippy::cast_possible_wrap, clippy::cast_possible_truncation, clippy::cast_sign_loss,
|
61 |
// Next lints produce too much noise/false positives.
|
32 |
#![allow(
|
33 |
clippy::cast_sign_loss, clippy::cast_possible_wrap, // Simple `as` conversions that will not fail.
|
34 |
clippy::unused_self, // Speaker needs to take self to keep thread safe.
|
6 |
clippy::cast_lossless,
|
7 |
clippy::cast_possible_wrap,
|
8 |
clippy::cast_sign_loss,
|
123 |
pub mod sg {
|
124 |
#![allow(clippy::cast_possible_wrap)]
|
86 |
// Next `cast_*` lints don't give alternatives.
|
87 |
clippy::cast_possible_wrap, clippy::cast_possible_truncation, clippy::cast_sign_loss,
|
88 |
// Next lints produce too much noise/false positives.
|
122 |
// Next `cast_*` lints don't give alternatives.
|
123 |
clippy::cast_possible_wrap, clippy::cast_possible_truncation, clippy::cast_sign_loss,
|
124 |
// Next lints produce too much noise/false positives.
|
31 |
// Next `cast_*` lints don't give alternatives.
|
32 |
clippy::cast_possible_wrap, clippy::cast_possible_truncation, clippy::cast_sign_loss,
|
33 |
// Next lints produce too much noise/false positives.
|
40 |
// Next `cast_*` lints don't give alternatives.
|
41 |
clippy::cast_possible_wrap, clippy::cast_possible_truncation, clippy::cast_sign_loss,
|
42 |
// Next lints produce too much noise/false positives.
|
70 |
// Next `cast_*` lints don't give alternatives.
|
71 |
clippy::cast_possible_wrap, clippy::cast_possible_truncation, clippy::cast_sign_loss,
|
72 |
// Next lints produce too much noise/false positives.
|
46 |
// Next `cast_*` lints don't give alternatives.
|
47 |
clippy::cast_possible_wrap, clippy::cast_possible_truncation, clippy::cast_sign_loss,
|
48 |
// Next lints produce too much noise/false positives.
|
151 |
// Next `cast_*` lints don't give alternatives.
|
152 |
clippy::cast_possible_wrap, clippy::cast_possible_truncation, clippy::cast_sign_loss,
|
153 |
// Next lints produce too much noise/false positives.
|
44 |
// Next `cast_*` lints don't give alternatives.
|
45 |
clippy::cast_possible_wrap, clippy::cast_possible_truncation, clippy::cast_sign_loss,
|
46 |
// Next lints produce too much noise/false positives.
|
46 |
// Next `cast_*` lints don't give alternatives.
|
47 |
clippy::cast_possible_wrap, clippy::cast_possible_truncation, clippy::cast_sign_loss,
|
48 |
// Next lints produce too much noise/false positives.
|
45 |
// Next `cast_*` lints don't give alternatives.
|
46 |
clippy::cast_possible_wrap, clippy::cast_possible_truncation, clippy::cast_sign_loss,
|
47 |
// Next lints produce too much noise/false positives.
|
311 |
// Next `cast_*` lints don't give alternatives.
|
312 |
clippy::cast_possible_wrap, clippy::cast_possible_truncation, clippy::cast_sign_loss,
|
313 |
// Next lints produce too much noise/false positives.
|
137 |
// Next `cast_*` lints don't give alternatives.
|
138 |
clippy::cast_possible_wrap, clippy::cast_possible_truncation, clippy::cast_sign_loss,
|
139 |
// Next lints produce too much noise/false positives.
|
84 |
// Next `cast_*` lints don't give alternatives.
|
85 |
clippy::cast_possible_wrap, clippy::cast_possible_truncation, clippy::cast_sign_loss,
|
86 |
// Next lints produce too much noise/false positives.
|
103 |
// Next `cast_*` lints don't give alternatives.
|
104 |
clippy::cast_possible_wrap, clippy::cast_possible_truncation, clippy::cast_sign_loss,
|
105 |
// Next lints produce too much noise/false positives.
|
107 |
// Next `cast_*` lints don't give alternatives.
|
108 |
clippy::cast_possible_wrap, clippy::cast_possible_truncation, clippy::cast_sign_loss,
|
109 |
// Next lints produce too much noise/false positives.
|
36 |
clippy::cast_possible_truncation,
|
37 |
clippy::cast_possible_wrap,
|
38 |
clippy::cast_sign_loss,
|
78 |
#![allow(clippy::cast_precision_loss)]
|
79 |
#![allow(clippy::cast_possible_wrap)]
|
80 |
#![allow(clippy::module_name_repetitions)] // We do that way too often
|
24 |
clippy::cast_possible_truncation,
|
25 |
clippy::cast_possible_wrap,
|
26 |
clippy::cast_precision_loss,
|
19 |
clippy::cast_possible_truncation,
|
20 |
clippy::cast_possible_wrap,
|
21 |
clippy::cast_precision_loss,
|
3 |
clippy::non_send_fields_in_send_ty,
|
4 |
clippy::cast_possible_wrap,
|
5 |
clippy::borrow_interior_mutable_const,
|
1 |
#![allow(clippy::borrow_interior_mutable_const, clippy::cast_possible_wrap)]
|
38 |
#![allow(clippy::cast_sign_loss)]
|
39 |
#![allow(clippy::cast_possible_wrap)]
|
40 |
#![allow(clippy::cast_possible_truncation)]
|
23 |
clippy::panic_in_result_fn, // Should be removed asap
|
24 |
clippy::cast_possible_wrap, // Should be considered but not removed.
|
25 |
// Casts are only used in a safe context.
|
4 |
#![allow(clippy::cast_possible_truncation)]
|
5 |
#![allow(clippy::cast_possible_wrap)]
|
6 |
#![allow(clippy::cast_precision_loss)]
|
6 |
clippy::cast_possible_truncation,
|
7 |
clippy::cast_possible_wrap,
|
8 |
clippy::cast_precision_loss,
|
36 |
#![allow(
|
37 |
clippy::cast_possible_wrap,
|
38 |
clippy::cast_possible_truncation,
|
3 |
#![allow(clippy::cast_possible_wrap)]
|
4 |
use std::ops::Index;
|
38 |
clippy::wildcard_imports,
|
39 |
clippy::cast_possible_wrap,
|
40 |
clippy::cast_possible_truncation,
|
23 |
clippy::cast_possible_truncation,
|
24 |
clippy::cast_possible_wrap,
|
25 |
clippy::module_name_repetitions
|
40 |
clippy::cast_sign_loss,
|
41 |
clippy::cast_possible_wrap,
|
42 |
clippy::module_name_repetitions,
|
42 |
clippy::cast_sign_loss,
|
43 |
clippy::cast_possible_wrap,
|
44 |
clippy::module_name_repetitions
|
37 |
clippy::cast_sign_loss,
|
38 |
clippy::cast_possible_wrap,
|
39 |
clippy::module_name_repetitions,
|
354 |
) -> Result<(), RenderError> {
|
355 |
#![allow(clippy::cast_possible_truncation, clippy::cast_possible_wrap)]
|
468 |
clippy::cast_possible_truncation,
|
469 |
clippy::cast_possible_wrap
|
470 |
)]
|
1051 |
) -> Result<GlTexture, InitError> {
|
1052 |
#![allow(clippy::cast_possible_wrap)]
|
90 |
clippy::cast_possible_truncation,
|
91 |
clippy::cast_possible_wrap,
|
92 |
clippy::cast_sign_loss
|
6 |
clippy::cast_possible_truncation,
|
7 |
clippy::cast_possible_wrap,
|
8 |
clippy::shadow_reuse,
|
11 |
clippy::cast_possible_truncation,
|
12 |
clippy::cast_possible_wrap,
|
13 |
clippy::cast_sign_loss,
|
1 |
#![allow(clippy::cast_possible_wrap)]
|
119 |
clippy::cast_sign_loss,
|
120 |
clippy::cast_possible_wrap,
|
121 |
clippy::cast_possible_truncation,
|
4 |
clippy::match_same_arms,
|
5 |
clippy::cast_possible_wrap
|
6 |
)]
|
4 |
clippy::cast_sign_loss,
|
5 |
clippy::cast_possible_wrap,
|
6 |
clippy::needless_range_loop
|
97 |
// Next `cast_*` lints don't give alternatives.
|
98 |
clippy::cast_possible_wrap, clippy::cast_possible_truncation, clippy::cast_sign_loss,
|
99 |
// Next lints produce too much noise/false positives.
|
1 |
#![deny(clippy::all, clippy::pedantic, clippy::cognitive_complexity)]
|
2 |
#![allow(clippy::cast_possible_wrap)]
|
3 |
#![feature(test)]
|
24 |
clippy::cast_possible_truncation,
|
25 |
clippy::cast_possible_wrap,
|
26 |
clippy::cast_precision_loss,
|
25 |
clippy::cast_possible_truncation,
|
26 |
clippy::cast_possible_wrap,
|
27 |
clippy::cast_precision_loss,
|
24 |
clippy::cast_possible_truncation,
|
25 |
clippy::cast_possible_wrap,
|
26 |
clippy::cast_precision_loss,
|
24 |
clippy::cast_possible_truncation,
|
25 |
clippy::cast_possible_wrap,
|
26 |
clippy::cast_precision_loss,
|
24 |
clippy::cast_possible_truncation,
|
25 |
clippy::cast_possible_wrap,
|
26 |
clippy::cast_precision_loss,
|
25 |
clippy::cast_possible_truncation,
|
26 |
clippy::cast_possible_wrap,
|
27 |
clippy::cast_precision_loss,
|
24 |
clippy::cast_possible_truncation,
|
25 |
clippy::cast_possible_wrap,
|
26 |
clippy::cast_precision_loss,
|
97 |
// Next `cast_*` lints don't give alternatives.
|
98 |
clippy::cast_possible_wrap, clippy::cast_possible_truncation, clippy::cast_sign_loss,
|
99 |
// Next lints produce too much noise/false positives.
|
24 |
clippy::cast_possible_truncation,
|
25 |
clippy::cast_possible_wrap,
|
26 |
clippy::cast_precision_loss,
|
138 |
// Pedantic.
|
139 |
clippy::cast_possible_wrap,
|
140 |
clippy::cast_precision_loss,
|
148 |
// Pedantic.
|
149 |
clippy::cast_possible_wrap,
|
150 |
clippy::cast_precision_loss,
|
147 |
// Pedantic.
|
148 |
clippy::cast_possible_wrap,
|
149 |
clippy::cast_precision_loss,
|
24 |
clippy::cast_possible_truncation,
|
25 |
clippy::cast_possible_wrap,
|
26 |
clippy::cast_precision_loss,
|
5 |
#![allow(clippy::cast_possible_truncation)]
|
6 |
#![allow(clippy::cast_possible_wrap)]
|
7 |
#![allow(clippy::cast_sign_loss)]
|
5 |
#![allow(clippy::cast_possible_truncation)]
|
6 |
#![allow(clippy::cast_possible_wrap)]
|
7 |
#![allow(clippy::cast_sign_loss)]
|
5 |
#![allow(clippy::cast_possible_truncation)]
|
6 |
#![allow(clippy::cast_possible_wrap)]
|
7 |
#![allow(clippy::cast_sign_loss)]
|
5 |
#![allow(clippy::cast_possible_truncation)]
|
6 |
#![allow(clippy::cast_possible_wrap)]
|
7 |
#![allow(clippy::cast_sign_loss)]
|
5 |
#![allow(clippy::cast_possible_truncation)]
|
6 |
#![allow(clippy::cast_possible_wrap)]
|
7 |
#![allow(clippy::cast_sign_loss)]
|
5 |
#![allow(clippy::cast_possible_truncation)]
|
6 |
#![allow(clippy::cast_possible_wrap)]
|
7 |
#![allow(clippy::cast_sign_loss)]
|
5 |
#![allow(clippy::cast_possible_truncation)]
|
6 |
#![allow(clippy::cast_possible_wrap)]
|
7 |
#![allow(clippy::cast_sign_loss)]
|
5 |
#![allow(clippy::cast_possible_truncation)]
|
6 |
#![allow(clippy::cast_possible_wrap)]
|
7 |
#![allow(clippy::cast_sign_loss)]
|
5 |
#![allow(clippy::cast_possible_truncation)]
|
6 |
#![allow(clippy::cast_possible_wrap)]
|
7 |
#![allow(clippy::cast_sign_loss)]
|
5 |
clippy::unreadable_literal,
|
6 |
clippy::cast_possible_wrap,
|
7 |
clippy::wildcard_imports,
|
152 |
#![allow(clippy::module_name_repetitions)] // Doesn't recognize public re-exports.
|
153 |
#![allow(clippy::cast_possible_wrap)]
|
154 |
// I want to enable this but it requires bumping the Rustc version and I don't want to do that just
|
1 |
#![allow(clippy::cast_possible_wrap, clippy::cast_sign_loss)]
|
2 |
use serde::{Deserialize, Serialize};
|
1 |
#![allow(clippy::module_inception, clippy::option_option, clippy::cast_sign_loss, clippy::cast_possible_truncation, clippy::cast_possible_wrap, clippy::cast_lossless)]
|
232 |
clippy::cast_lossless,
|
233 |
clippy::cast_possible_wrap,
|
234 |
clippy::cast_precision_loss,
|
2 |
clippy::cast_possible_truncation,
|
3 |
clippy::cast_possible_wrap,
|
4 |
clippy::cast_precision_loss,
|
3 |
#![allow(clippy::cast_possible_truncation)]
|
4 |
#![allow(clippy::cast_possible_wrap)]
|
168 |
clippy::cast_precision_loss,
|
169 |
clippy::cast_possible_wrap,
|
170 |
clippy::cast_sign_loss
|
543 |
clippy::cast_precision_loss,
|
544 |
clippy::cast_possible_wrap,
|
545 |
clippy::cast_sign_loss
|
604 |
clippy::cast_precision_loss,
|
605 |
clippy::cast_possible_wrap,
|
606 |
clippy::cast_sign_loss
|
3 |
#![allow(
|
4 |
clippy::cast_possible_wrap,
|
5 |
clippy::cast_possible_truncation,
|
3 |
clippy::cast_possible_truncation,
|
4 |
clippy::cast_possible_wrap,
|
5 |
clippy::cast_sign_loss,
|
323 |
#![allow(
|
324 |
clippy::cast_possible_wrap,
|
325 |
clippy::cast_sign_loss,
|
4 |
clippy::cast_possible_truncation,
|
5 |
clippy::cast_possible_wrap,
|
6 |
clippy::cast_precision_loss,
|
4 |
clippy::cast_possible_truncation,
|
5 |
clippy::cast_possible_wrap,
|
6 |
clippy::cast_precision_loss,
|
4 |
clippy::cast_possible_truncation,
|
5 |
clippy::cast_possible_wrap,
|
6 |
clippy::cast_sign_loss,
|
4 |
clippy::cast_possible_truncation,
|
5 |
clippy::cast_possible_wrap,
|
6 |
clippy::cast_sign_loss,
|
3 |
clippy::cast_precision_loss,
|
4 |
clippy::cast_possible_wrap,
|
5 |
clippy::cast_possible_truncation,
|
4 |
#![allow(clippy::missing_panics_doc)]
|
5 |
#![allow(clippy::cast_possible_wrap)]
|
6 |
#![allow(clippy::cast_possible_truncation)]
|
59 |
// Next `cast_*` lints don't give alternatives.
|
60 |
clippy::cast_possible_wrap, clippy::cast_possible_truncation, clippy::cast_sign_loss,
|
61 |
// Next lints produce too much noise/false positives.
|
59 |
// Next `cast_*` lints don't give alternatives.
|
60 |
clippy::cast_possible_wrap, clippy::cast_possible_truncation, clippy::cast_sign_loss,
|
61 |
// Next lints produce too much noise/false positives.
|
82 |
clippy::cast_possible_truncation,
|
83 |
clippy::cast_possible_wrap
|
84 |
)]
|
67 |
clippy::default_numeric_fallback,
|
68 |
clippy::cast_possible_wrap,
|
69 |
clippy::cast_sign_loss,
|
26 |
clippy::default_numeric_fallback,
|
27 |
clippy::cast_possible_wrap,
|
28 |
clippy::cast_sign_loss,
|
87 |
clippy::cast_possible_truncation,
|
88 |
clippy::cast_possible_wrap,
|
89 |
clippy::cast_sign_loss,
|
23 |
clippy::approx_constant,
|
24 |
clippy::cast_possible_wrap,
|
25 |
clippy::cast_sign_loss,
|
24 |
clippy::cast_possible_truncation,
|
25 |
clippy::cast_possible_wrap,
|
26 |
clippy::cast_sign_loss,
|
25 |
clippy::cast_possible_truncation,
|
26 |
clippy::cast_possible_wrap,
|
27 |
clippy::cast_sign_loss,
|
24 |
clippy::cast_possible_truncation,
|
25 |
clippy::cast_possible_wrap,
|
26 |
clippy::cast_possible_wrap,
|
27 |
clippy::cast_sign_loss,
|
61 |
clippy::cast_possible_truncation,
|
62 |
clippy::cast_possible_wrap,
|
63 |
clippy::cast_sign_loss,
|
23 |
clippy::approx_constant,
|
24 |
clippy::cast_possible_wrap,
|
25 |
clippy::cast_sign_loss,
|
24 |
clippy::cast_possible_truncation,
|
25 |
clippy::cast_possible_wrap,
|
26 |
clippy::cast_sign_loss,
|
26 |
clippy::cast_possible_truncation,
|
27 |
clippy::cast_possible_wrap,
|
28 |
clippy::cast_sign_loss,
|
24 |
clippy::cast_possible_truncation,
|
25 |
clippy::cast_possible_wrap,
|
26 |
clippy::cast_possible_wrap,
|
27 |
clippy::cast_sign_loss,
|
5 |
#![allow(clippy::cast_possible_truncation)]
|
6 |
#![allow(clippy::cast_possible_wrap)]
|
7 |
#![allow(clippy::cast_sign_loss)]
|
115 |
cast_possible_truncation,
|
116 |
cast_possible_wrap,
|
117 |
cast_sign_loss,
|
333 |
clippy::cast_possible_truncation,
|
334 |
clippy::cast_possible_wrap,
|
335 |
clippy::cast_precision_loss,
|
3 |
clippy::cast_possible_truncation,
|
4 |
clippy::cast_possible_wrap,
|
5 |
clippy::cast_precision_loss,
|
331 |
cast_possible_truncation,
|
332 |
cast_possible_wrap,
|
333 |
cast_precision_loss,
|
334 |
clippy::cast_possible_truncation,
|
335 |
clippy::cast_possible_wrap,
|
336 |
clippy::cast_precision_loss,
|
305 |
// integer and float ser/de requires these sorts of casts
|
306 |
cast_possible_wrap,
|
307 |
cast_precision_loss,
|
318 |
// integer and float ser/de requires these sorts of casts
|
319 |
cast_possible_wrap,
|
320 |
cast_precision_loss,
|
326 |
clippy::cast_possible_truncation,
|
327 |
clippy::cast_possible_wrap,
|
328 |
clippy::cast_precision_loss,
|
142 |
clippy::cast_possible_truncation,
|
143 |
clippy::cast_possible_wrap,
|
144 |
clippy::cast_precision_loss,
|
2 |
clippy::cast_lossless,
|
3 |
clippy::cast_possible_wrap,
|
4 |
clippy::derive_partial_eq_without_eq,
|
88 |
clippy::blocks_in_if_conditions,
|
89 |
clippy::cast_possible_wrap,
|
90 |
clippy::cast_precision_loss,
|
2 |
clippy::cast_lossless,
|
3 |
clippy::cast_possible_wrap,
|
4 |
clippy::derive_partial_eq_without_eq
|
65 |
clippy::unreadable_literal,
|
66 |
clippy::cast_possible_wrap,
|
67 |
clippy::wildcard_imports,
|
135 |
clippy::shadow_reuse,
|
136 |
clippy::cast_possible_wrap,
|
137 |
clippy::cast_sign_loss,
|
135 |
clippy::shadow_reuse,
|
136 |
clippy::cast_possible_wrap,
|
137 |
clippy::cast_sign_loss,
|
3 |
clippy::as_conversions,
|
4 |
clippy::cast_possible_wrap,
|
5 |
clippy::integer_arithmetic,
|
4 |
clippy::integer_arithmetic,
|
5 |
clippy::cast_possible_wrap,
|
6 |
clippy::cast_sign_loss,
|
59 |
clippy::cast_possible_truncation,
|
60 |
clippy::cast_possible_wrap,
|
61 |
clippy::cast_precision_loss,
|
10 |
clippy::cast_possible_truncation,
|
11 |
clippy::cast_possible_wrap,
|
12 |
clippy::cast_sign_loss,
|
4 |
#![allow(clippy::cast_possible_truncation)]
|
5 |
#![allow(clippy::cast_possible_wrap)]
|
6 |
#![allow(clippy::cast_precision_loss)]
|
63 |
clippy::cast_possible_truncation,
|
64 |
clippy::cast_possible_wrap,
|
65 |
clippy::cast_sign_loss,
|
7 |
#![allow(clippy::cast_possible_truncation)]
|
8 |
#![allow(clippy::cast_possible_wrap)]
|
9 |
#![allow(clippy::similar_names)]
|
66 |
clippy::cast_precision_loss,
|
67 |
clippy::cast_possible_wrap,
|
68 |
clippy::default_trait_access
|
1 |
#![allow(clippy::unwrap_used, clippy::cast_possible_wrap)]
|
259 |
clippy::cast_possible_truncation,
|
260 |
clippy::cast_possible_wrap,
|
261 |
clippy::cast_ptr_alignment,
|
250 |
cast_possible_truncation,
|
251 |
cast_possible_wrap,
|
252 |
empty_enum,
|
35 |
clippy::cast_possible_truncation,
|
36 |
clippy::cast_possible_wrap,
|
37 |
clippy::cast_precision_loss,
|
6 |
#![allow(clippy::redundant_pattern_matching)]
|
7 |
#![allow(clippy::cast_possible_wrap)]
|
8 |
#![forbid(unsafe_code)]
|
17 |
clippy::cast_sign_loss,
|
18 |
clippy::cast_possible_wrap
|
19 |
)]
|
4 |
clippy::cast_possible_truncation,
|
5 |
clippy::cast_possible_wrap,
|
6 |
clippy::cast_sign_loss,
|
4 |
clippy::cast_possible_truncation,
|
5 |
clippy::cast_possible_wrap,
|
6 |
clippy::cast_sign_loss,
|
14 |
clippy::cast_possible_truncation,
|
15 |
clippy::cast_possible_wrap,
|
16 |
clippy::cast_ptr_alignment,
|
218 |
clippy::cast_lossless,
|
219 |
clippy::cast_possible_wrap,
|
220 |
clippy::cast_precision_loss,
|
4 |
#![allow(clippy::cast_possible_truncation)]
|
5 |
#![allow(clippy::cast_possible_wrap)]
|
6 |
#![allow(clippy::cast_precision_loss)]
|
30 |
clippy::cast_sign_loss,
|
31 |
clippy::cast_possible_wrap,
|
32 |
clippy::cast_lossless,
|
6 |
#![allow(clippy::cast_possible_truncation)]
|
7 |
#![allow(clippy::cast_possible_wrap)]
|
8 |
#![allow(clippy::cast_precision_loss)]
|
4 |
#![allow(clippy::cast_possible_truncation)]
|
5 |
#![allow(clippy::cast_possible_wrap)]
|
6 |
#![allow(clippy::cast_precision_loss)]
|
5 |
clippy::cast_sign_loss,
|
6 |
clippy::cast_possible_wrap,
|
7 |
clippy::too_many_arguments,
|