18 |
#[inline]
|
19 |
#[allow(clippy::integer_arithmetic)]
|
20 |
fn duration_max() -> Duration {
|
380 |
// overflow not possible
|
381 |
#[allow(clippy::integer_arithmetic)]
|
382 |
{
|
206 |
// to `WidenedValueType` to ensure overflow cannot happen in this case either.
|
207 |
#[allow(clippy::integer_arithmetic)]
|
208 |
let range_len = end.clone() - start.clone() + <TRangeLhs as IRange>::WidenedValueType::one();
|
210 |
// `abs_value > end` per `match` arm ensures that `abs_value - end` cannot overflow
|
211 |
#[allow(clippy::integer_arithmetic)]
|
212 |
let overflow_magnitude = abs_value - end;
|
106 |
// TODO(tarcieri): explicitly checked/wrapped arithmetic
|
107 |
#[allow(clippy::integer_arithmetic)]
|
108 |
fn decode_in_place(mut buf: &mut [u8]) -> Result<&[u8], InvalidEncodingError> {
|
308 |
// TODO(tarcieri): explicitly checked/wrapped arithmetic
|
309 |
#[allow(clippy::integer_arithmetic)]
|
310 |
fn last_block_start(bytes: &[u8], block_size: usize) -> usize {
|
346 |
// TODO(tarcieri): explicitly checked/wrapped arithmetic
|
347 |
#[allow(clippy::integer_arithmetic)]
|
348 |
#[inline(always)]
|
357 |
// TODO(tarcieri): explicitly checked/wrapped arithmetic
|
358 |
#[allow(clippy::integer_arithmetic)]
|
359 |
#[inline(always)]
|
364 |
// TODO(tarcieri): explicitly checked/wrapped arithmetic
|
365 |
#[allow(clippy::integer_arithmetic)]
|
366 |
#[inline(always)]
|
140 |
#[allow(clippy::integer_arithmetic)]
|
141 |
fn parse_u32_from_uleb128(&mut self) -> Result<u32> {
|
170 |
#[allow(clippy::integer_arithmetic)]
|
171 |
fn parse_u32_from_uleb128(&mut self) -> Result<u32> {
|
228 |
// so it's not hardened against malicious inputs
|
229 |
#[allow(clippy::integer_arithmetic)]
|
230 |
#[allow(clippy::indexing_slicing)]
|
136 |
// so it's not hardened against malicious inputs
|
137 |
#[allow(clippy::integer_arithmetic)]
|
138 |
#[allow(clippy::cast_possible_truncation)]
|
157 |
let auction_delay = protocol_config.auction_delay;
|
158 |
#[allow(clippy::integer_arithmetic)] // Block height should never reach u64::MAX.
|
159 |
let next_height = maybe_latest_block_header.map_or(0, |hdr| hdr.height() + 1);
|
472 |
/// block execution has caught up with finalization.
|
473 |
#[allow(clippy::integer_arithmetic)] // Block height should never reach u64::MAX.
|
474 |
fn executed_block(&mut self, block_header: &BlockHeader) {
|
515 |
#[allow(clippy::integer_arithmetic)] // Block height should never reach u64::MAX.
|
516 |
if era_id.is_genesis() {
|
978 |
let now = Timestamp::now(); // TODO: This should be passed in.
|
979 |
#[allow(clippy::integer_arithmetic)] // Block height should never reach u64::MAX.
|
980 |
let mut outcomes = self.era_supervisor.new_era(
|
1061 |
#[allow(clippy::integer_arithmetic)] // Block height should never reach u64::MAX.
|
1062 |
fn handle_consensus_outcome(
|
656 |
#[cfg(test)]
|
657 |
#[allow(clippy::integer_arithmetic)] // Overflows in tests panic anyway.
|
658 |
mod tests {
|
83 |
// Collect the block rewards for each validator who is a member of at least one summit.
|
84 |
#[allow(clippy::integer_arithmetic)] // See inline comments.
|
85 |
max_quorum
|
152 |
#[allow(unused_qualifications)] // This is to suppress warnings originating in the test macros.
|
153 |
#[allow(clippy::integer_arithmetic)] // Overflows in tests would panic anyway.
|
154 |
#[cfg(test)]
|
127 |
/// Returns the quorum required by a summit with the specified level and the required FTT.
|
128 |
#[allow(clippy::integer_arithmetic)] // See comments.
|
129 |
fn quorum_for_lvl(&self, lvl: usize, total_w: Weight) -> Weight {
|
155 |
// In a trillion years, we need to make block height u128.
|
156 |
#[allow(clippy::integer_arithmetic)]
|
157 |
let height_plus_1 = |bhash| state.block(bhash).height + 1;
|
58 |
/// Returns a successor to current era.
|
59 |
#[allow(clippy::integer_arithmetic)] // The caller must make sure this doesn't overflow.
|
60 |
pub fn successor(self) -> EraId {
|
118 |
#[allow(clippy::integer_arithmetic)] // The caller must make sure this doesn't overflow.
|
119 |
fn add(self, x: u64) -> EraId {
|
133 |
#[allow(clippy::integer_arithmetic)] // The caller must make sure this doesn't overflow.
|
134 |
fn sub(self, x: u64) -> EraId {
|
236 |
/// other use may overflow and is thus unsupported and at one's own risk.
|
237 |
#[allow(clippy::integer_arithmetic)]
|
238 |
unsafe impl std::alloc::GlobalAlloc for BumpAllocator {
|
274 |
/// # Safety
|
275 |
#[allow(clippy::integer_arithmetic)]
|
276 |
#[allow(clippy::type_complexity)]
|
12 |
#![allow(clippy::integer_arithmetic)]
|
599 |
for i in 1..self.account_keys.len() {
|
600 |
#[allow(clippy::integer_arithmetic)]
|
601 |
if self.account_keys[i..].contains(&self.account_keys[i - 1]) {
|
392 |
#[doc(hidden)]
|
393 |
#[allow(clippy::integer_arithmetic)]
|
394 |
pub fn check_type_assumptions() {
|
1059 |
#[allow(clippy::integer_arithmetic)]
|
1060 |
fn mock_process_instruction(
|
204 |
/// Given a list of regions translate from virtual machine to host address
|
205 |
#[allow(clippy::integer_arithmetic)]
|
206 |
pub fn map(&self, access_type: AccessType, vm_addr: u64, len: u64, pc: usize) -> ProgramResult {
|
451 |
#[allow(clippy::integer_arithmetic)]
|
452 |
#[inline]
|
45 |
#[allow(clippy::integer_arithmetic)]
|
46 |
pub mod v0 {
|
22 |
// Because accum[0] is a u8, 8bit left shift of the u16 can never overflow
|
23 |
#[allow(clippy::integer_arithmetic)]
|
24 |
let version = ((accum[0] as u16) << 8) | accum[1] as u16;
|
299 |
let len = welcome_message.len();
|
300 |
#[allow(clippy::integer_arithmetic, clippy::integer_division)]
|
301 |
let padding = width.saturating_sub(len)/2;
|
341 |
#[allow(clippy::integer_arithmetic)]
|
342 |
let len = status.len() + line_indicator.len();
|
74 |
// which ensure the operations will not overflow.
|
75 |
#[allow(clippy::integer_arithmetic)]
|
76 |
Some(byte) => {
|
132 |
// The checks above ensure this operation will not overflow
|
133 |
#[allow(clippy::integer_arithmetic)]
|
134 |
let byte = (first_arc * (ARC_MAX_SECOND + 1)) as u8 + second_arc as u8;
|
139 |
/// Get the value of the first arc
|
140 |
#[allow(clippy::integer_arithmetic)]
|
141 |
pub(crate) const fn first_arc(self) -> Arc {
|
145 |
/// Get the value of the second arc
|
146 |
#[allow(clippy::integer_arithmetic)]
|
147 |
pub(crate) const fn second_arc(self) -> Arc {
|
155 |
// Ensured not to overflow by constructor invariants
|
156 |
#[allow(clippy::integer_arithmetic)]
|
157 |
fn try_from(octet: u8) -> Result<Self> {
|
64 |
// Ensured not to overflow by `ARC_MAX_SECOND` check
|
65 |
#[allow(clippy::integer_arithmetic)]
|
66 |
State::FirstArc(first_arc) => {
|
76 |
// TODO(tarcieri): finer-grained overflow safety / checked arithmetic
|
77 |
#[allow(clippy::integer_arithmetic)]
|
78 |
State::Body => {
|
117 |
// Underflow checked by branch
|
118 |
#[allow(clippy::integer_arithmetic)]
|
119 |
if n > 0x80 {
|
52 |
// TODO(tarcieri): checked arithmetic
|
53 |
#[allow(clippy::integer_arithmetic)]
|
54 |
[byte @ b'0'..=b'9', remaining @ ..] => {
|
289 |
#[allow(clippy::integer_arithmetic)]
|
290 |
let align_offset = (&self.stack[dst_idx] as *const _ as usize) % align_of::<Stack>();
|
294 |
// Align the source start index
|
295 |
#[allow(clippy::integer_arithmetic)]
|
296 |
let src_start_idx = self.items % size_of::<usize>();
|
306 |
#[cfg(test)]
|
307 |
#[allow(clippy::integer_arithmetic)]
|
308 |
mod tests {
|
8 |
// Convert a usize (pointer) to a string.
|
9 |
#[allow(clippy::integer_arithmetic)]
|
10 |
unsafe fn u2s<'a>(ptr: usize) -> core::result::Result<&'a str, core::str::Utf8Error> {
|
81 |
#[inline]
|
82 |
#[allow(clippy::integer_arithmetic)]
|
83 |
pub fn rewind(&mut self) {
|
248 |
#[cfg(test)]
|
249 |
#[allow(clippy::integer_arithmetic)]
|
250 |
mod tests {
|
503 |
// override with the new one.
|
504 |
#[allow(clippy::integer_arithmetic)]
|
505 |
(Some(value), Some(index)) => {
|
55 |
unsafe fn increment(&mut self, value: ByteLen) {
|
56 |
#[allow(clippy::integer_arithmetic)]
|
57 |
{
|
130 |
pub const fn end(&self) -> ByteLen {
|
131 |
#[allow(clippy::integer_arithmetic)]
|
132 |
{
|
150 |
pub(crate) unsafe fn increment(&mut self, value: ByteLen) {
|
151 |
#[allow(clippy::integer_arithmetic)]
|
152 |
{
|
599 |
} else {
|
600 |
#[allow(clippy::integer_arithmetic)] { // False positive.
|
601 |
quote! {
|
606 |
}
|
607 |
#[allow(clippy::integer_arithmetic)] // False positive.
|
608 |
Self::Union(ref odors) => {
|
352 |
#[allow(clippy::integer_arithmetic)]
|
353 |
fn next(&mut self) -> Option<bool> {
|
389 |
#[cfg(feature = "flagset")]
|
390 |
#[allow(clippy::integer_arithmetic)]
|
391 |
impl<'a, T> DecodeValue<'a> for flagset::FlagSet<T>
|
415 |
#[cfg(feature = "flagset")]
|
416 |
#[allow(clippy::integer_arithmetic)]
|
417 |
#[inline(always)]
|
434 |
#[cfg(feature = "flagset")]
|
435 |
#[allow(clippy::cast_possible_truncation, clippy::integer_arithmetic)]
|
436 |
impl<T: flagset::Flags> EncodeValue for flagset::FlagSet<T>
|
386 |
/// sorting errors.
|
387 |
#[allow(clippy::integer_arithmetic)]
|
388 |
fn der_sort<T: DerOrd>(slice: &mut [T]) -> Result<()> {
|
60 |
// TODO(tarcieri): checked arithmetic
|
61 |
#[allow(clippy::integer_arithmetic)]
|
62 |
pub fn new(year: u16, month: u8, day: u8, hour: u8, minutes: u8, seconds: u8) -> Result<Self> {
|
128 |
// TODO(tarcieri): checked arithmetic
|
129 |
#[allow(clippy::integer_arithmetic)]
|
130 |
pub fn from_unix_duration(unix_duration: Duration) -> Result<Self> {
|
261 |
// TODO(tarcieri): checked arithmetic
|
262 |
#[allow(clippy::integer_arithmetic)]
|
263 |
fn from_str(s: &str) -> Result<Self> {
|
364 |
// TODO(tarcieri): checked arithmetic
|
365 |
#[allow(clippy::integer_arithmetic)]
|
366 |
pub(crate) fn decode_decimal(tag: Tag, hi: u8, lo: u8) -> Result<u8> {
|
227 |
/// other use may overflow and is thus unsupported and at one's own risk.
|
228 |
#[allow(clippy::integer_arithmetic)]
|
229 |
unsafe impl std::alloc::GlobalAlloc for BumpAllocator {
|
265 |
/// # Safety
|
266 |
#[allow(clippy::integer_arithmetic)]
|
267 |
#[allow(clippy::type_complexity)]
|
12 |
#![allow(clippy::integer_arithmetic)]
|
690 |
for i in 1..self.account_keys.len() {
|
691 |
#[allow(clippy::integer_arithmetic)]
|
692 |
if self.account_keys[i..].contains(&self.account_keys[i - 1]) {
|
227 |
/// other use may overflow and is thus unsupported and at one's own risk.
|
228 |
#[allow(clippy::integer_arithmetic)]
|
229 |
unsafe impl std::alloc::GlobalAlloc for BumpAllocator {
|
265 |
/// # Safety
|
266 |
#[allow(clippy::integer_arithmetic)]
|
267 |
#[allow(clippy::type_complexity)]
|
12 |
#![allow(clippy::integer_arithmetic)]
|
690 |
for i in 1..self.account_keys.len() {
|
691 |
#[allow(clippy::integer_arithmetic)]
|
692 |
if self.account_keys[i..].contains(&self.account_keys[i - 1]) {
|
22 |
/// 2 MiB
|
23 |
#[allow(clippy::integer_arithmetic)]
|
24 |
pub const BYTES_2_MIB: u64 = bytes![2; MiB];
|
26 |
/// 1 GiB
|
27 |
#[allow(clippy::integer_arithmetic)]
|
28 |
pub const BYTES_1_GIB: u64 = bytes![1; GiB];
|
110 |
// Safety: checked, that it is in the shim virtual address space earlier
|
111 |
#[allow(clippy::integer_arithmetic)]
|
112 |
ShimVirtAddr(unsafe {
|
122 |
fn try_from(value: ShimVirtAddr<U>) -> Result<Self, Self::Error> {
|
123 |
#[allow(clippy::integer_arithmetic)]
|
124 |
let value = value.0.raw();
|
170 |
fn try_from(value: ShimVirtAddr<U>) -> Result<Self, Self::Error> {
|
171 |
#[allow(clippy::integer_arithmetic)]
|
172 |
let value = value.0;
|
39 |
#[repr(C, align(0x200000))]
|
40 |
#[allow(clippy::integer_arithmetic)]
|
41 |
pub struct Page2MiB([u8; bytes![2; MiB]]);
|
74 |
#[inline]
|
75 |
#[allow(clippy::integer_arithmetic)]
|
76 |
fn msb(val: usize) -> u32 {
|
37 |
/// Initial exec stack size
|
38 |
#[allow(clippy::integer_arithmetic)]
|
39 |
const EXEC_STACK_SIZE: u64 = bytes![2; MiB];
|
24 |
/// The size of the main kernel stack
|
25 |
#[allow(clippy::integer_arithmetic)]
|
26 |
pub const SHIM_STACK_SIZE: u64 = bytes![2; MiB];
|
31 |
/// The size of the main kernel stack for exceptions
|
32 |
#[allow(clippy::integer_arithmetic)]
|
33 |
pub const SHIM_EX_STACK_SIZE: u64 = {
|
23 |
/// 2 MiB
|
24 |
#[allow(clippy::integer_arithmetic)]
|
25 |
pub const BYTES_2_MIB: u64 = bytes![2; MiB];
|
27 |
/// 1 GiB
|
28 |
#[allow(clippy::integer_arithmetic)]
|
29 |
pub const BYTES_1_GIB: u64 = bytes![1; GiB];
|
148 |
// Safety: checked, that it is in the shim virtual address space earlier
|
149 |
#[allow(clippy::integer_arithmetic)]
|
150 |
ShimVirtAddr(unsafe {
|
160 |
fn try_from(value: ShimVirtAddr<U>) -> Result<Self, Self::Error> {
|
161 |
#[allow(clippy::integer_arithmetic)]
|
162 |
let value = value.0.raw();
|
208 |
fn try_from(value: ShimVirtAddr<U>) -> Result<Self, Self::Error> {
|
209 |
#[allow(clippy::integer_arithmetic)]
|
210 |
let value = value.0;
|
39 |
#[repr(C, align(0x200000))]
|
40 |
#[allow(clippy::integer_arithmetic)]
|
41 |
pub struct Page2MiB([u8; bytes![2; MiB]]);
|
74 |
#[inline]
|
75 |
#[allow(clippy::integer_arithmetic)]
|
76 |
fn msb(val: usize) -> u32 {
|
10 |
/// The maximum size of the injected secret for SEV keeps
|
11 |
#[allow(clippy::integer_arithmetic)]
|
12 |
pub const SEV_SECRET_MAX_SIZE: usize = bytes!(16; KiB);
|
30 |
impl SevSecret {
|
31 |
#[allow(clippy::integer_arithmetic)]
|
32 |
unsafe fn cbor_len(data: *const u8) -> Option<usize> {
|
24 |
/// The size of the main kernel stack
|
25 |
#[allow(clippy::integer_arithmetic)]
|
26 |
pub const SHIM_STACK_SIZE: u64 = bytes![2; MiB];
|
40 |
#[cfg(feature = "optimized")]
|
41 |
#[allow(clippy::integer_arithmetic)]
|
42 |
return Ok(a + b);
|
59 |
#[cfg(feature = "optimized")]
|
60 |
#[allow(clippy::integer_arithmetic)]
|
61 |
return Ok(a - b);
|
71 |
#[inline(always)]
|
72 |
#[allow(clippy::integer_arithmetic)]
|
73 |
pub const fn add_usize(a: usize, b: usize) -> usize {
|
496 |
#[cfg(test)]
|
497 |
#[allow(clippy::integer_arithmetic)]
|
498 |
mod tests {
|
108 |
/// other use may overflow and is thus unsupported and at one's own risk.
|
109 |
#[allow(clippy::integer_arithmetic)]
|
110 |
unsafe impl std::alloc::GlobalAlloc for BumpAllocator {
|
141 |
/// done at one's own risk.
|
142 |
#[allow(clippy::integer_arithmetic)]
|
143 |
///
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
//! A library for generating a message from a sequence of instructions
|
498 |
for i in 1..self.account_keys.len() {
|
499 |
#[allow(clippy::integer_arithmetic)]
|
500 |
if self.account_keys[i..].contains(&self.account_keys[i - 1]) {
|
217 |
// 69..data_len - data
|
218 |
#[allow(clippy::integer_arithmetic)]
|
219 |
pub fn serialize_instructions(&self, demote_program_write_locks: bool) -> Vec<u8> {
|
18 |
// Because accum[0] is a u8, 8bit left shift of the u16 can never overflow
|
19 |
#[allow(clippy::integer_arithmetic)]
|
20 |
let version = ((accum[0] as u16) << 8) | accum[1] as u16;
|
140 |
// Take the last 20 bytes of the digest as the address
|
141 |
#[allow(clippy::integer_arithmetic)]
|
142 |
digest[(Address::LENGTH - 20)..].try_into()
|
57 |
#[allow(clippy::integer_arithmetic)]
|
58 |
fn are_others_valid(&self, instance: &Value, idx: usize) -> bool {
|
148 |
#[allow(clippy::integer_arithmetic)]
|
149 |
fn replace_control_group(captures: ®ex::Captures) -> String {
|
144 |
type Item = PrimitiveType;
|
145 |
#[allow(clippy::integer_arithmetic)]
|
146 |
fn next(&mut self) -> Option<Self::Item> {
|
77 |
#[allow(clippy::integer_arithmetic)]
|
78 |
for (haystack_pos, haystack_char) in haystack.iter().enumerate() {
|
79 |
#[allow(clippy::indexing_slicing, clippy::integer_arithmetic)]
|
80 |
while let Some(position) = kmp_find_with_lsp_table(needle, &haystack[start..], lsp) {
|
23 |
#[allow(clippy::integer_arithmetic)]
|
24 |
while distance > 0 && *needle_char != needle[distance] {
|
170 |
#[allow(clippy::integer_arithmetic)]
|
171 |
fn parse_u32_from_uleb128(&mut self) -> Result<u32> {
|
62 |
let new_row = self.rows[at.y].split(at.x);
|
63 |
#[allow(clippy::integer_arithmetic)]
|
64 |
self.rows.insert(at.y + 1, new_row);
|
84 |
}
|
85 |
#[allow(clippy::integer_arithmetic, clippy::indexing_slicing)]
|
86 |
pub fn delete(&mut self, at: &Position) {
|
308 |
let len = welcome_message.len();
|
309 |
#[allow(clippy::integer_arithmetic, clippy::integer_division)]
|
310 |
let padding = width.saturating_sub(len) / 2;
|
318 |
let start = self.offset.x;
|
319 |
#[allow(clippy::integer_arithmetic)]
|
320 |
let end = self.offset.x + width - self.terminal.size().height.to_string().len();
|
323 |
}
|
324 |
#[allow(clippy::integer_arithmetic, clippy::integer_division)]
|
325 |
fn draw_rows(&self) {
|
370 |
);
|
371 |
#[allow(clippy::integer_arithmetic)]
|
372 |
let len = status.len() + position_indicator.len();
|
28 |
let mut current_highlighting = &highlighting::Type::None;
|
29 |
#[allow(clippy::integer_arithmetic)]
|
30 |
for (index, grapheme) in self.string[..]
|
140 |
#[allow(clippy::integer_arithmetic)]
|
141 |
fn parse_u32_from_uleb128(&mut self) -> Result<u32> {
|
117 |
#[allow(clippy::print_stdout, clippy::integer_arithmetic)]
|
118 |
/// The program starts here.
|
82 |
#[allow(clippy::print_stdout, clippy::integer_arithmetic)]
|
83 |
/// The program starts here. No arguments.
|
203 |
#[allow(clippy::print_stdout, clippy::integer_arithmetic)]
|
204 |
/// The program starts here. No arguments.
|
110 |
#[allow(clippy::integer_arithmetic)]
|
111 |
/// find from_pos
|
117 |
#[allow(clippy::print_stdout, clippy::integer_arithmetic)]
|
118 |
/// The program starts here.
|
40 |
#[allow(clippy::integer_arithmetic)]
|
41 |
/// find from_pos
|
154 |
#[allow(clippy::print_stdout, clippy::integer_arithmetic)]
|
155 |
/// The program starts here. No arguments.
|
372 |
#[allow(clippy::integer_arithmetic)]
|
373 |
/// in string find from position
|
44 |
#[cfg(test)]
|
45 |
#[allow(clippy::integer_arithmetic, clippy::unwrap_used)]
|
46 |
mod tests {
|
32 |
/// Increments this id
|
33 |
#[allow(clippy::integer_arithmetic)] // We need to add one to get the next id
|
34 |
pub(crate) fn inc(&mut self) {
|
55 |
#[allow(clippy::integer_arithmetic)] // We need to add one to get the next index
|
56 |
fn next(&mut self) -> Option< Self::Item >
|
96 |
#[allow(clippy::integer_arithmetic)] // We need to add one to get the next index
|
97 |
fn next(&mut self) -> Option< Self::Item >
|
187 |
/// Registers a predicate to filter entities through
|
188 |
#[allow(clippy::integer_arithmetic)] // We need to add one to get the next pred id
|
189 |
pub fn add_pred<F>(&mut self, f: F) -> usize
|
102 |
// some valid value which won't cause an overflow.
|
103 |
#[allow(clippy::arithmetic_side_effects, clippy::integer_arithmetic)]
|
104 |
char::from_u32(u32::from(char) + 1)
|
120 |
// some valid value which won't cause an underflow.
|
121 |
#[allow(clippy::arithmetic_side_effects, clippy::integer_arithmetic)]
|
122 |
char::from_u32(u32::from(char) - 1)
|
14 |
// this algorithm should be fine as it is
|
15 |
#[allow(clippy::integer_arithmetic)]
|
16 |
fn distance(&self, other: &Self) -> f32 {
|
1 |
#[inline]
|
2 |
#[allow(clippy::integer_arithmetic)]
|
33 |
#[inline]
|
34 |
#[allow(clippy::integer_arithmetic)]
|
44 |
#[inline]
|
45 |
#[allow(clippy::integer_arithmetic, clippy::checked_conversions)]
|
17 |
// bounds are always valid, then the sum of the contained values cannot overflow.
|
18 |
#[allow(clippy::integer_arithmetic)]
|
19 |
fn add(self, rhs: RangedI32<START_RHS, END_RHS>) -> Self::Output {
|
6 |
impl<const START: i32, const END: i32> RangedI32<START, END> {
|
7 |
#[allow(clippy::integer_arithmetic)]
|
8 |
#[must_use]
|
3 |
impl<const START: i32, const END: i32> RangedI32<START, END> {
|
4 |
#[allow(clippy::integer_arithmetic)]
|
5 |
#[must_use]
|
15 |
// compile time). ∴ the sum of the contained values cannot overflow.
|
16 |
#[allow(clippy::integer_arithmetic)]
|
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> {
|
94 |
#[allow(clippy::integer_arithmetic, clippy::as_conversions)]
|
95 |
fn next(&self) -> Option<Self::Output> {
|
10 |
#[must_use]
|
11 |
#[allow(clippy::integer_arithmetic)]
|
12 |
fn predecessor(&self) -> Option<Self> {
|
20 |
#[must_use]
|
21 |
#[allow(clippy::integer_arithmetic)]
|
22 |
fn successor(&self) -> Option<Self> {
|
41 |
#[must_use]
|
42 |
#[allow(clippy::shadow_reuse, clippy::integer_arithmetic, clippy::as_conversions)]
|
43 |
fn shares_neighbour_with(&self, other: &Self) -> bool {
|
66 |
} else {
|
67 |
#[allow(clippy::integer_arithmetic)]
|
68 |
Some(*self + 1)
|
10 |
#[must_use]
|
11 |
#[allow(clippy::integer_arithmetic)]
|
12 |
fn predecessor(&self) -> Option<Self> {
|
20 |
#[must_use]
|
21 |
#[allow(clippy::integer_arithmetic)]
|
22 |
fn successor(&self) -> Option<Self> {
|
41 |
#[must_use]
|
42 |
#[allow(clippy::shadow_reuse, clippy::integer_arithmetic, clippy::as_conversions)]
|
43 |
fn shares_neighbour_with(&self, other: &Self) -> bool {
|
259 |
clippy::arithmetic_side_effects,
|
260 |
clippy::integer_arithmetic
|
261 |
)]
|
236 |
/// and stops the propagation of Option None.
|
237 |
#[allow(clippy::integer_arithmetic, clippy::nonminimal_bool)]
|
238 |
fn read_token_internal(&mut self) -> Option<Result<Token<'a>, &'static str>> {
|
53 |
let new_row = current_row.split(at.x);
|
54 |
#[allow(clippy::integer_arithmetic)]
|
55 |
self.rows.insert(at.y + 1, new_row);
|
81 |
}
|
82 |
#[allow(clippy::integer_arithmetic, clippy::indexing_slicing)]
|
83 |
pub fn delete(&mut self, at: &Position) {
|
302 |
let len = welcome_message.len();
|
303 |
#[allow(clippy::integer_arithmetic, clippy::integer_division)]
|
304 |
let padding = width.saturating_sub(len) / 2;
|
316 |
}
|
317 |
#[allow(clippy::integer_division, clippy::integer_arithmetic)]
|
318 |
fn draw_rows(&self) {
|
360 |
);
|
361 |
#[allow(clippy::integer_arithmetic)]
|
362 |
let len = status.len() + line_indicator.len();
|
32 |
let mut current_highlighting = &highlighting::Type::None;
|
33 |
#[allow(clippy::integer_arithmetic)]
|
34 |
for (index, grapheme) in self.string[..]
|
147 |
};
|
148 |
#[allow(clippy::integer_arithmetic)]
|
149 |
let substring: String = self.string[..]
|
163 |
if matching_byte_index == byte_index {
|
164 |
#[allow(clippy::integer_arithmetic)]
|
165 |
return Some(start + grapheme_index);
|
225 |
if *index > 0 {
|
226 |
#[allow(clippy::indexing_slicing, clippy::integer_arithmetic)]
|
227 |
let prev_char = chars[*index - 1];
|
233 |
if *index < chars.len().saturating_sub(word.len()) {
|
234 |
#[allow(clippy::indexing_slicing, clippy::integer_arithmetic)]
|
235 |
let next_char = chars[*index + word.len()];
|
282 |
// this will go until 10 and cannot overflow
|
283 |
#[allow(clippy::integer_arithmetic)]
|
284 |
{
|
297 |
/// usize of time
|
298 |
#[allow(clippy::integer_arithmetic)]
|
299 |
// usize will not overflow, the minutes are max 60, so 6 mio
|
61 |
let new_row = current_row.split(at.x);
|
62 |
#[allow(clippy::integer_arithmetic)]
|
63 |
self.rows.insert(at.y + 1, new_row);
|
90 |
}
|
91 |
#[allow(clippy::integer_arithmetic, clippy::indexing_slicing)]
|
92 |
pub fn delete(&mut self, at: &Position) {
|
607 |
let len = welcome_message.len();
|
608 |
#[allow(clippy::integer_arithmetic, clippy::integer_division)]
|
609 |
let padding = width.saturating_sub(len) / 2;
|
621 |
}
|
622 |
#[allow(clippy::integer_division, clippy::integer_arithmetic)]
|
623 |
fn draw_rows(&self) {
|
666 |
);
|
667 |
#[allow(clippy::integer_arithmetic)]
|
668 |
let len = status.len() + line_indicator.len();
|
33 |
let mut current_highlighting = &highlighting::Type::None;
|
34 |
#[allow(clippy::integer_arithmetic)]
|
35 |
for (index, grapheme) in self.string[..]
|
159 |
};
|
160 |
#[allow(clippy::integer_arithmetic)]
|
161 |
let substring: String = self.string[..]
|
175 |
if matching_byte_index == byte_index {
|
176 |
#[allow(clippy::integer_arithmetic)]
|
177 |
return Some(start + grapheme_index);
|
237 |
if *index > 0 {
|
238 |
#[allow(clippy::indexing_slicing, clippy::integer_arithmetic)]
|
239 |
let prev_char = chars[*index - 1];
|
245 |
if *index < chars.len().saturating_sub(word.len()) {
|
246 |
#[allow(clippy::indexing_slicing, clippy::integer_arithmetic)]
|
247 |
let next_char = chars[*index + word.len()];
|
513 |
} else {
|
514 |
#[allow(clippy::integer_arithmetic)]
|
515 |
{
|
818 |
} else {
|
819 |
#[allow(clippy::integer_arithmetic)]
|
820 |
{
|
937 |
} else {
|
938 |
#[allow(clippy::integer_arithmetic)]
|
939 |
{
|
806 |
#[cfg(test)]
|
807 |
#[allow(clippy::integer_arithmetic)]
|
808 |
mod tests {
|
233 |
/// other use may overflow and is thus unsupported and at one's own risk.
|
234 |
#[allow(clippy::integer_arithmetic)]
|
235 |
unsafe impl std::alloc::GlobalAlloc for BumpAllocator {
|
271 |
/// # Safety
|
272 |
#[allow(clippy::integer_arithmetic)]
|
273 |
#[allow(clippy::type_complexity)]
|
12 |
#![allow(clippy::integer_arithmetic)]
|
599 |
for i in 1..self.account_keys.len() {
|
600 |
#[allow(clippy::integer_arithmetic)]
|
601 |
if self.account_keys[i..].contains(&self.account_keys[i - 1]) {
|
390 |
#[doc(hidden)]
|
391 |
#[allow(clippy::integer_arithmetic)]
|
392 |
pub fn check_type_assumptions() {
|
1236 |
#[allow(clippy::integer_arithmetic)]
|
1237 |
fn mock_process_instruction(
|
18 |
// Because accum[0] is a u8, 8bit left shift of the u16 can never overflow
|
19 |
#[allow(clippy::integer_arithmetic)]
|
20 |
let version = ((accum[0] as u16) << 8) | accum[1] as u16;
|
4067 |
#[allow(clippy::integer_arithmetic)]
|
4068 |
fn run_serde_compact_vote_state_update<R: Rng>(rng: &mut R) {
|
36 |
STDIN_FILENO | STDOUT_FILENO | STDERR_FILENO => {
|
37 |
#[allow(clippy::integer_arithmetic)]
|
38 |
const fn makedev(x: u64, y: u64) -> u64 {
|
104 |
// Return cell index
|
105 |
#[allow(clippy::integer_arithmetic)]
|
106 |
(digest_value as usize % self.filter.len()).as_()
|
128 |
#[cfg(feature = "metrics")]
|
129 |
#[allow(clippy::integer_arithmetic)]
|
130 |
{
|
264 |
#[cfg(feature = "metrics")]
|
265 |
#[allow(clippy::integer_arithmetic)]
|
266 |
{
|
109 |
/// Computes posterior area-specific false positives probability (fpp)
|
110 |
#[allow(clippy::integer_arithmetic)]
|
111 |
pub fn set_area_fpp(&mut self) {
|
132 |
/// Computes prior area-specific false positives probability (prior_fpp)
|
133 |
#[allow(clippy::integer_arithmetic)]
|
134 |
pub fn set_prior_area_fpp(&mut self) {
|
193 |
/// Computes the expected number of cells for each area (expected_cells)
|
194 |
#[allow(clippy::integer_arithmetic)]
|
195 |
pub fn set_expected_area_cells(&mut self) {
|
106 |
// Return cell index
|
107 |
#[allow(clippy::integer_arithmetic)]
|
108 |
(digest_value as usize % self.filter.len()).as_()
|
130 |
#[cfg(feature = "metrics")]
|
131 |
#[allow(clippy::integer_arithmetic)]
|
132 |
{
|
266 |
#[cfg(feature = "metrics")]
|
267 |
#[allow(clippy::integer_arithmetic)]
|
268 |
{
|
109 |
/// Computes posterior area-specific false positives probability (fpp)
|
110 |
#[allow(clippy::integer_arithmetic)]
|
111 |
pub fn set_area_fpp(&mut self) {
|
132 |
/// Computes prior area-specific false positives probability (prior_fpp)
|
133 |
#[allow(clippy::integer_arithmetic)]
|
134 |
pub fn set_prior_area_fpp(&mut self) {
|
193 |
/// Computes the expected number of cells for each area (expected_cells)
|
194 |
#[allow(clippy::integer_arithmetic)]
|
195 |
pub fn set_expected_area_cells(&mut self) {
|
84 |
fn byte2hex(byte: u8) -> (u8, u8) {
|
85 |
#[allow(clippy::integer_arithmetic)] // X >> 4 is valid for all bytes
|
86 |
let hi = HEX_CHARS_LOWER[((byte >> 4) & 0x0f) as usize];
|
92 |
#[inline(always)]
|
93 |
#[allow(clippy::integer_arithmetic)] // debug only assertion
|
94 |
fn hex_encode(src: &[u8], dst: &mut [u8]) {
|
76 |
#[cfg(test)]
|
77 |
#[allow(clippy::unwrap_used, clippy::integer_arithmetic)]
|
78 |
mod tests {
|
530 |
} else {
|
531 |
#[allow(clippy::integer_arithmetic)]
|
532 |
{
|
851 |
} else {
|
852 |
#[allow(clippy::integer_arithmetic)]
|
853 |
{
|
970 |
} else {
|
971 |
#[allow(clippy::integer_arithmetic)]
|
972 |
{
|
802 |
#[cfg(test)]
|
803 |
#[allow(clippy::integer_arithmetic)]
|
804 |
mod tests {
|
233 |
/// other use may overflow and is thus unsupported and at one's own risk.
|
234 |
#[allow(clippy::integer_arithmetic)]
|
235 |
unsafe impl std::alloc::GlobalAlloc for BumpAllocator {
|
271 |
/// # Safety
|
272 |
#[allow(clippy::integer_arithmetic)]
|
273 |
#[allow(clippy::type_complexity)]
|
12 |
#![allow(clippy::integer_arithmetic)]
|
599 |
for i in 1..self.account_keys.len() {
|
600 |
#[allow(clippy::integer_arithmetic)]
|
601 |
if self.account_keys[i..].contains(&self.account_keys[i - 1]) {
|
390 |
#[doc(hidden)]
|
391 |
#[allow(clippy::integer_arithmetic)]
|
392 |
pub fn check_type_assumptions() {
|
1164 |
#[allow(clippy::integer_arithmetic)]
|
1165 |
fn mock_process_instruction(
|
204 |
/// Given a list of regions translate from virtual machine to host address
|
205 |
#[allow(clippy::integer_arithmetic)]
|
206 |
pub fn map(&self, access_type: AccessType, vm_addr: u64, len: u64, pc: usize) -> ProgramResult {
|
451 |
#[allow(clippy::integer_arithmetic)]
|
452 |
#[inline]
|
18 |
// Because accum[0] is a u8, 8bit left shift of the u16 can never overflow
|
19 |
#[allow(clippy::integer_arithmetic)]
|
20 |
let version = ((accum[0] as u16) << 8) | accum[1] as u16;
|
4060 |
#[allow(clippy::integer_arithmetic)]
|
4061 |
fn run_serde_compact_vote_state_update<R: Rng>(rng: &mut R) {
|
459 |
/// Updates the cache with the pending events for 1 second
|
460 |
#[allow(clippy::integer_arithmetic, clippy::arithmetic_side_effects)]
|
461 |
async fn update(&mut self) -> Result<(), anyhow::Error> {
|
71 |
/// the block size.
|
72 |
#[allow(clippy::integer_arithmetic)]
|
73 |
pub fn padding_len(self, input_size: usize) -> usize {
|
114 |
// TODO(tarcieri): checked arithmetic
|
115 |
#[allow(clippy::integer_arithmetic)]
|
116 |
((((input_len * 4) / 3) + 3) & !3)
|
384 |
#[allow(clippy::integer_arithmetic)]
|
385 |
let mut data = Vec::with_capacity(FIELD_SIZE * 2 + 4 * 2 + 2);
|
408 |
#[allow(clippy::integer_arithmetic)]
|
409 |
let mut data = Vec::with_capacity(FIELD_SIZE * 2 + 4 * 2 + 2);
|
263 |
#[cfg(test)]
|
264 |
#[allow(clippy::unwrap_used, clippy::integer_arithmetic)]
|
265 |
mod tests {
|
403 |
clippy::unwrap_used,
|
404 |
clippy::integer_arithmetic,
|
405 |
clippy::too_many_arguments
|
63 |
#[cfg(test)]
|
64 |
#[allow(clippy::unwrap_used, clippy::integer_arithmetic)]
|
65 |
mod tests {
|
32 |
/// useful for passing to code outside of Rust.
|
33 |
#[allow(clippy::integer_arithmetic)]
|
34 |
pub const fn to_bits(self) -> u64 {
|
49 |
/// to work.
|
50 |
#[allow(clippy::integer_arithmetic)]
|
51 |
pub const fn from_bits(bits: u64) -> Option<Self> {
|
24 |
#[must_use]
|
25 |
#[allow(clippy::integer_arithmetic)]
|
26 |
pub(crate) fn slot(self) -> u32 {
|
59 |
if x == '}' {
|
60 |
#[allow(clippy::integer_arithmetic)] // no overflow potential
|
61 |
if strt + 1 == xi {
|
66 |
// and no overflow potential
|
67 |
#[allow(clippy::indexing_slicing, clippy::integer_arithmetic)]
|
68 |
let ff = &fmt_str[(strt + 1)..xi];
|
132 |
// last may run off the end if last range
|
133 |
#[allow(clippy::integer_arithmetic)]
|
134 |
{
|
175 |
/// If the `id` is 0 or when the usage count is over [`u16::MAX`]
|
176 |
#[allow(clippy::unwrap_used, clippy::integer_arithmetic)]
|
177 |
pub fn register(&self, id: u64) {
|
1074 |
#[allow(clippy::indexing_slicing)]
|
1075 |
#[allow(clippy::integer_arithmetic)]
|
1076 |
#[cfg(test)]
|
796 |
#[cfg(test)]
|
797 |
#[allow(clippy::integer_arithmetic)]
|
798 |
mod tests {
|
236 |
/// other use may overflow and is thus unsupported and at one's own risk.
|
237 |
#[allow(clippy::integer_arithmetic)]
|
238 |
unsafe impl std::alloc::GlobalAlloc for BumpAllocator {
|
274 |
/// # Safety
|
275 |
#[allow(clippy::integer_arithmetic)]
|
276 |
#[allow(clippy::type_complexity)]
|
12 |
#![allow(clippy::integer_arithmetic)]
|
599 |
for i in 1..self.account_keys.len() {
|
600 |
#[allow(clippy::integer_arithmetic)]
|
601 |
if self.account_keys[i..].contains(&self.account_keys[i - 1]) {
|
392 |
#[doc(hidden)]
|
393 |
#[allow(clippy::integer_arithmetic)]
|
394 |
pub fn check_type_assumptions() {
|
1059 |
#[allow(clippy::integer_arithmetic)]
|
1060 |
fn mock_process_instruction(
|
45 |
#[allow(clippy::integer_arithmetic)]
|
46 |
pub mod v0 {
|
22 |
// Because accum[0] is a u8, 8bit left shift of the u16 can never overflow
|
23 |
#[allow(clippy::integer_arithmetic)]
|
24 |
let version = ((accum[0] as u16) << 8) | accum[1] as u16;
|
31 |
fn post_timer(&mut self, timer: TimerInfo) -> Result<Progress> {
|
32 |
#[allow(clippy::integer_arithmetic)] // timer list is never empty
|
33 |
let stop_after = self.stop_after.unwrap_or(timer.length - 1);
|
99 |
#[cfg(test)]
|
100 |
#[allow(clippy::unwrap_used, clippy::integer_arithmetic)]
|
101 |
mod tests {
|
23 |
clippy::indexing_slicing,
|
24 |
clippy::integer_arithmetic,
|
25 |
clippy::integer_division,
|
1 |
#![allow(clippy::integer_arithmetic)]
|
99 |
//! ```
|
100 |
#![allow(clippy::integer_arithmetic)]
|
101 |
use bytes::Bytes;
|
62 |
//!
|
63 |
#![allow(clippy::integer_arithmetic)]
|
99 |
//! ```
|
100 |
#![allow(clippy::integer_arithmetic)]
|
101 |
use bytes::Bytes;
|
62 |
//!
|
63 |
#![allow(clippy::integer_arithmetic)]
|
24 |
clippy::indexing_slicing,
|
25 |
clippy::integer_arithmetic,
|
26 |
clippy::missing_panics_doc,
|
21 |
clippy::indexing_slicing,
|
22 |
clippy::integer_arithmetic,
|
23 |
clippy::integer_division,
|
4 |
#![allow(clippy::integer_arithmetic)]
|
3 |
// TODO(tarcieri): explicitly checked/wrapped arithmetic
|
4 |
#![allow(clippy::integer_arithmetic)]
|
28 |
#![allow(clippy::indexing_slicing)]
|
29 |
#![allow(clippy::integer_arithmetic)]
|
30 |
#![allow(clippy::integer_division)]
|
30 |
#![allow(clippy::indexing_slicing)] // Proc macros are error prone
|
31 |
#![allow(clippy::integer_arithmetic)]
|
32 |
#![allow(clippy::integer_division)]
|
69 |
#![allow(clippy::indexing_slicing)]
|
70 |
#![allow(clippy::integer_arithmetic)]
|
71 |
#![allow(clippy::integer_division)]
|
21 |
clippy::indexing_slicing,
|
22 |
clippy::integer_arithmetic,
|
23 |
clippy::integer_division,
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
pub mod config_instruction;
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
pub mod macros;
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
pub mod counter;
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
//! Utilities for the [borsh] serialization format.
|
10 |
#![allow(clippy::integer_arithmetic)]
|
3 |
#![allow(clippy::integer_arithmetic)]
|
4 |
use {
|
14 |
#![allow(clippy::integer_arithmetic)]
|
3 |
#![allow(clippy::integer_arithmetic)]
|
217 |
mod tests {
|
218 |
#![allow(clippy::integer_arithmetic)]
|
219 |
use {super::*, std::io::Write};
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
// Copyright 2017 Rich Lane <lanerl@gmail.com>
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
// Copyright 2017 Rich Lane <lanerl@gmail.com>
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
// Copyright 2017 6WIND S.A. <quentin.monnet@6wind.com>
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
// Copyright 2016 6WIND S.A. <quentin.monnet@6wind.com>
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
// Copyright 2017 Alex Dukhno <alex.dukhno@icloud.com>
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
// Derived from uBPF <https://github.com/iovisor/ubpf>
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
// Derived from uBPF <https://github.com/iovisor/ubpf>
|
1 |
#![feature(test)]
|
2 |
#![allow(clippy::integer_arithmetic)]
|
2 |
// SPDX-License-Identifier: Apache-2.0
|
3 |
#![allow(clippy::integer_arithmetic)]
|
12 |
#![allow(clippy::integer_arithmetic, missing_docs)]
|
64 |
// Overflows can produce unpredictable results and are only checked in debug builds
|
65 |
#![allow(clippy::integer_arithmetic)]
|
4 |
#![allow(clippy::integer_arithmetic)]
|
6 |
clippy::cast_sign_loss,
|
7 |
clippy::integer_arithmetic
|
8 |
)]
|
31 |
//! testing purposes. Production code should find an alternate means for secure key generation.
|
32 |
#![allow(clippy::integer_arithmetic)]
|
100 |
//! ```
|
101 |
#![allow(clippy::integer_arithmetic)]
|
102 |
use bytes::Bytes;
|
57 |
//!
|
58 |
#![allow(clippy::integer_arithmetic)]
|
32 |
//! testing purposes. Production code should find an alternate means for secure key generation.
|
33 |
#![allow(clippy::integer_arithmetic)]
|
101 |
//! ```
|
102 |
#![allow(clippy::integer_arithmetic)]
|
103 |
use bytes::Bytes;
|
58 |
//!
|
59 |
#![allow(clippy::integer_arithmetic)]
|
21 |
clippy::indexing_slicing,
|
22 |
clippy::integer_arithmetic,
|
23 |
clippy::integer_division,
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
//! Borsh utils
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
//! Solana Rust-based BPF program entry point supported by the original
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
use {
|
14 |
#![allow(clippy::integer_arithmetic)]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
/// There are 10^9 lamports in one SOL
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
use {
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
//! Borsh utils
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
//! Solana Rust-based BPF program entry point supported by the original
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
use {
|
14 |
#![allow(clippy::integer_arithmetic)]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
/// There are 10^9 lamports in one SOL
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
use {
|
1 |
//! The solana-program-test provides a BanksClient-based test framework BPF programs
|
2 |
#![allow(clippy::integer_arithmetic)]
|
14 |
#![allow(clippy::arithmetic_side_effects)]
|
15 |
#![allow(clippy::integer_arithmetic)]
|
16 |
#![allow(clippy::pub_use)]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
#[macro_use]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
pub mod banks_server;
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
pub mod alloc;
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
mod bucket;
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
mod cli_output;
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
#[macro_use]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
pub mod config_instruction;
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
pub mod entry;
|
1 |
#![cfg_attr(RUSTC_WITH_SPECIALIZATION, feature(min_specialization))]
|
2 |
#![allow(clippy::integer_arithmetic)]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
use {
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
use {
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
#[macro_use]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
#![feature(test)]
|
1 |
#![cfg_attr(RUSTC_WITH_SPECIALIZATION, feature(min_specialization))]
|
2 |
#![allow(clippy::integer_arithmetic)]
|
3 |
#[macro_use]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
use gemachain_entry::entry::Entry;
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
pub mod measure;
|
1 |
#![allow(clippy::integer_arithmetic)]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
pub mod counter;
|
1 |
//! The `net_utils` module assists with networking
|
2 |
#![allow(clippy::integer_arithmetic)]
|
3 |
use {
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
pub mod poh_recorder;
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
//! Borsh utils
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
//! @brief Gemachain Rust-based BPF program entry point supported by the original
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
use crate::clock::DEFAULT_MS_PER_SLOT;
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
//! Defines a composable Instruction type and a memory-efficient CompiledInstruction.
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
/// There are 10^9 carats in one GEMA
|
1 |
#![cfg_attr(RUSTC_WITH_SPECIALIZATION, feature(min_specialization))]
|
2 |
#![allow(clippy::integer_arithmetic)]
|
1 |
//! The gemachain-program-test provides a BanksClient-based test framework BPF programs
|
2 |
#![allow(clippy::integer_arithmetic)]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
use {
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
pub mod ledger;
|
1 |
#![allow(clippy::integer_arithmetic)]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
mod cluster_tpu_info;
|
1 |
#![feature(test)]
|
2 |
#![allow(clippy::integer_arithmetic)]
|
1 |
#![feature(test)]
|
2 |
#![allow(clippy::integer_arithmetic)]
|
1 |
#![cfg_attr(RUSTC_WITH_SPECIALIZATION, feature(min_specialization))]
|
2 |
#![allow(clippy::integer_arithmetic)]
|
3 |
pub mod accounts;
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
use gemachain_runtime::{
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
pub mod send_transaction_service;
|
1 |
#![cfg_attr(RUSTC_WITH_SPECIALIZATION, feature(min_specialization))]
|
2 |
#![allow(clippy::integer_arithmetic)]
|
3 |
use gemachain_sdk::genesis_config::GenesisConfig;
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
use {
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
pub mod packet;
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
#[macro_use]
|
1 |
#![cfg_attr(RUSTC_WITH_SPECIALIZATION, feature(min_specialization))]
|
2 |
#![allow(clippy::integer_arithmetic)]
|
56 |
clippy::implicit_return,
|
57 |
clippy::integer_arithmetic,
|
58 |
clippy::missing_docs_in_private_items,
|
56 |
clippy::implicit_return,
|
57 |
clippy::integer_arithmetic,
|
58 |
clippy::missing_docs_in_private_items,
|
56 |
clippy::implicit_return,
|
57 |
clippy::integer_arithmetic,
|
58 |
clippy::missing_docs_in_private_items,
|
56 |
clippy::implicit_return,
|
57 |
clippy::integer_arithmetic,
|
58 |
clippy::missing_docs_in_private_items,
|
56 |
clippy::implicit_return,
|
57 |
clippy::integer_arithmetic,
|
58 |
clippy::missing_docs_in_private_items,
|
56 |
clippy::implicit_return,
|
57 |
clippy::integer_arithmetic,
|
58 |
clippy::missing_docs_in_private_items,
|
56 |
clippy::implicit_return,
|
57 |
clippy::integer_arithmetic,
|
58 |
clippy::missing_docs_in_private_items,
|
56 |
clippy::implicit_return,
|
57 |
clippy::integer_arithmetic,
|
58 |
clippy::missing_docs_in_private_items,
|
56 |
clippy::implicit_return,
|
57 |
clippy::integer_arithmetic,
|
58 |
clippy::missing_docs_in_private_items,
|
56 |
clippy::implicit_return,
|
57 |
clippy::integer_arithmetic,
|
58 |
clippy::missing_docs_in_private_items,
|
29 |
clippy::wildcard_imports,
|
30 |
clippy::integer_arithmetic
|
31 |
)]
|
19 |
clippy::wildcard_dependencies, // Based, but blame Serde.
|
20 |
clippy::integer_arithmetic,
|
21 |
clippy::wildcard_enum_match_arm, // Might be good to avoid if possible
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
pub mod measure;
|
8 |
clippy::indexing_slicing,
|
9 |
clippy::integer_arithmetic,
|
10 |
clippy::integer_division,
|
24 |
// We need integer arithmetic to compute type sizes
|
25 |
#![allow(clippy::integer_arithmetic)]
|
26 |
// We want to explicitly use the type we're converting to in implementations
|
10 |
clippy::integer_division,
|
11 |
clippy::integer_arithmetic,
|
12 |
clippy::indexing_slicing,
|
11 |
clippy::as_conversions,
|
12 |
clippy::integer_arithmetic,
|
13 |
clippy::float_arithmetic,
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
pub mod macros;
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
mod de;
|
41 |
clippy::cast_possible_truncation, //
|
42 |
clippy::integer_arithmetic, //
|
43 |
trivial_casts,
|
4 |
// Serde
|
5 |
clippy::integer_arithmetic
|
6 |
)]
|
11 |
// Serde
|
12 |
clippy::integer_arithmetic
|
13 |
)]
|
4 |
// Serde
|
5 |
clippy::integer_arithmetic
|
6 |
)]
|
11 |
// Serde
|
12 |
clippy::integer_arithmetic
|
13 |
)]
|
8 |
// Serde
|
9 |
clippy::integer_arithmetic
|
10 |
)]
|
70 |
clippy::indexing_slicing, clippy::inline_asm_x86_intel_syntax,
|
71 |
clippy::integer_arithmetic, clippy::integer_division,
|
72 |
clippy::match_on_vec_items, clippy::missing_errors_doc,
|
9 |
// Group of too restrictive lints
|
10 |
clippy::integer_arithmetic,
|
11 |
clippy::float_arithmetic,
|
9 |
// Group of too restrictive lints
|
10 |
clippy::integer_arithmetic,
|
11 |
clippy::float_arithmetic,
|
9 |
// Group of too restrictive lints
|
10 |
clippy::integer_arithmetic,
|
11 |
clippy::float_arithmetic,
|
9 |
// Group of too restrictive lints
|
10 |
clippy::integer_arithmetic,
|
11 |
clippy::float_arithmetic,
|
9 |
// Group of too restrictive lints
|
10 |
clippy::integer_arithmetic,
|
11 |
clippy::float_arithmetic,
|
6 |
clippy::undocumented_unsafe_blocks,
|
7 |
clippy::integer_arithmetic,
|
8 |
clippy::inline_always,
|
20 |
// Most integer arithmetics are within an allocated region, so we know it's safe
|
21 |
clippy::integer_arithmetic,
|
22 |
)]
|
65 |
clippy::cast_possible_truncation,
|
66 |
clippy::integer_arithmetic,
|
67 |
clippy::default_numeric_fallback,
|
24 |
clippy::cast_possible_truncation,
|
25 |
clippy::integer_arithmetic,
|
26 |
clippy::default_numeric_fallback,
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
#![deny(missing_docs)]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
#![deny(missing_docs)]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
#![deny(missing_docs)]
|
1 |
#![allow(clippy::integer_arithmetic, clippy::op_ref)]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
#[macro_use]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
pub mod banks_server;
|
1 |
#![allow(clippy::integer_arithmetic)]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
mod bucket;
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
pub mod budget_expr;
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
mod cli_output;
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
#[macro_use]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
use {
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
pub mod config_instruction;
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
use console::Emoji;
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
pub mod exchange_instruction;
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
#![feature(test)]
|
1 |
#![cfg_attr(RUSTC_WITH_SPECIALIZATION, feature(specialization))]
|
2 |
#![allow(clippy::integer_arithmetic)]
|
3 |
#[macro_use]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
use solana_ledger::entry::Entry;
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
pub mod macros;
|
1 |
#![allow(clippy::integer_arithmetic)]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
pub mod counter;
|
1 |
//! The `net_utils` module assists with networking
|
2 |
#![allow(clippy::integer_arithmetic)]
|
3 |
use {
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
#![feature(test)]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
#![feature(test)]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
//! Utilities for the [borsh] serialization format.
|
10 |
#![allow(clippy::integer_arithmetic)]
|
3 |
#![allow(clippy::integer_arithmetic)]
|
4 |
use {
|
14 |
#![allow(clippy::integer_arithmetic)]
|
3 |
#![allow(clippy::integer_arithmetic)]
|
1 |
//! The safecoin-program-test provides a BanksClient-based test framework BPF programs
|
2 |
#![allow(clippy::integer_arithmetic)]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
use {
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
#![allow(dead_code)]
|
1 |
#![feature(test)]
|
2 |
#![allow(clippy::integer_arithmetic)]
|
1 |
#![feature(test)]
|
2 |
#![allow(clippy::integer_arithmetic)]
|
1 |
#![cfg_attr(RUSTC_WITH_SPECIALIZATION, feature(min_specialization))]
|
2 |
#![allow(clippy::integer_arithmetic)]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
use {
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
pub mod send_transaction_service;
|
1 |
#![cfg_attr(RUSTC_WITH_SPECIALIZATION, feature(min_specialization))]
|
2 |
#![allow(clippy::integer_arithmetic)]
|
3 |
#[deprecated(
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
use {
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
pub mod nonblocking;
|
1 |
#![allow(clippy::integer_arithmetic)]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
pub mod vest_instruction;
|
1 |
#![cfg_attr(RUSTC_WITH_SPECIALIZATION, feature(min_specialization))]
|
2 |
#![allow(clippy::integer_arithmetic)]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
use {
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
#[macro_use]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
use {
|
1 |
#![allow(clippy::integer_arithmetic)]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
pub mod banks_server;
|
1 |
#![allow(clippy::integer_arithmetic)]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
mod bucket;
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
pub mod budget_expr;
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
macro_rules! ACCOUNT_STRING {
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
use {
|
1 |
#![allow(clippy::integer_arithmetic)]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
use {
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
#![allow(clippy::redundant_closure)]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
#![allow(clippy::redundant_closure)]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
use {
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
mod cli_output;
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
#[macro_use]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
use {
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
pub mod config_instruction;
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
#![feature(test)]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
#![feature(test)]
|
1 |
#![feature(test)]
|
2 |
#![allow(clippy::integer_arithmetic)]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
#![feature(test)]
|
1 |
#![cfg_attr(RUSTC_WITH_SPECIALIZATION, feature(min_specialization))]
|
2 |
#![allow(clippy::integer_arithmetic)]
|
3 |
#![recursion_limit = "2048"]
|
73 |
//! ```
|
74 |
#![allow(clippy::integer_arithmetic)]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
// Long-running ledger_cleanup tests
|
1 |
#![allow(clippy::integer_arithmetic)]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
use {
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
pub mod entry;
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
pub mod exchange_instruction;
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
pub mod address_generator;
|
1 |
//! A command-line executable for generating the chain's genesis config.
|
2 |
#![allow(clippy::integer_arithmetic)]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
1 |
#![cfg_attr(RUSTC_WITH_SPECIALIZATION, feature(min_specialization))]
|
2 |
#![allow(clippy::integer_arithmetic)]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
use {
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
use {
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
#[macro_use]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
#[macro_use]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
use {
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
#![feature(test)]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
#![feature(test)]
|
1 |
#![cfg_attr(RUSTC_WITH_SPECIALIZATION, feature(min_specialization))]
|
2 |
#![allow(clippy::integer_arithmetic)]
|
3 |
#[macro_use]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
use {
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
use {
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
pub mod cluster;
|
1 |
#![allow(clippy::integer_arithmetic, dead_code)]
|
2 |
use {
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
use {
|
2 |
//! because these tests are run separately from the rest of local cluster tests.
|
3 |
#![allow(clippy::integer_arithmetic)]
|
4 |
use {
|
2 |
//! biggest improvements to CI times can be found.
|
3 |
#![allow(clippy::integer_arithmetic)]
|
4 |
use {
|
2 |
//! biggest improvements to CI times can be found.
|
3 |
#![allow(clippy::integer_arithmetic)]
|
4 |
use {
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
pub mod macros;
|
1 |
#![allow(clippy::integer_arithmetic)]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
pub mod counter;
|
1 |
//! The `net_utils` module assists with networking
|
2 |
#![allow(clippy::integer_arithmetic)]
|
3 |
use {
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
#![feature(test)]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
#![feature(test)]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
pub mod poh_recorder;
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
//! Utilities for the [borsh] serialization format.
|
10 |
#![allow(clippy::integer_arithmetic)]
|
3 |
#![allow(clippy::integer_arithmetic)]
|
4 |
use {
|
14 |
#![allow(clippy::integer_arithmetic)]
|
3 |
#![allow(clippy::integer_arithmetic)]
|
1 |
//! The solana-program-test provides a BanksClient-based test framework BPF programs
|
2 |
#![allow(clippy::integer_arithmetic)]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
use {
|
1 |
#![allow(clippy::integer_arithmetic)]
|
1 |
//! Ramp up TPS for Tour de SOL until all validators drop out
|
2 |
#![allow(clippy::integer_arithmetic)]
|
217 |
mod tests {
|
218 |
#![allow(clippy::integer_arithmetic)]
|
219 |
use {super::*, std::io::Write};
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
// Copyright 2017 Rich Lane <lanerl@gmail.com>
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
// Copyright 2017 Rich Lane <lanerl@gmail.com>
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
// Copyright 2017 6WIND S.A. <quentin.monnet@6wind.com>
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
// Copyright 2016 6WIND S.A. <quentin.monnet@6wind.com>
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
// Copyright 2017 Alex Dukhno <alex.dukhno@icloud.com>
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
// Derived from uBPF <https://github.com/iovisor/ubpf>
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
// Derived from uBPF <https://github.com/iovisor/ubpf>
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
#![allow(dead_code)]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
4 |
#![allow(clippy::integer_arithmetic)]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
use {
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
mod cluster_tpu_info;
|
1 |
#![feature(test)]
|
2 |
#![allow(clippy::integer_arithmetic)]
|
1 |
#![feature(test)]
|
2 |
#![allow(clippy::integer_arithmetic)]
|
1 |
#![cfg_attr(RUSTC_WITH_SPECIALIZATION, feature(min_specialization))]
|
2 |
#![allow(clippy::integer_arithmetic)]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
use {
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
pub mod send_transaction_service;
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
mod arg_parser;
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
use log::*;
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
use {
|
1 |
#![cfg_attr(RUSTC_WITH_SPECIALIZATION, feature(min_specialization))]
|
2 |
#![allow(clippy::integer_arithmetic)]
|
3 |
#[deprecated(
|
1 |
#![allow(clippy::integer_arithmetic)]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
pub mod nonblocking;
|
1 |
//! The solana-program-test provides a BanksClient-based test framework BPF programs
|
2 |
#![allow(clippy::integer_arithmetic)]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
use {
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
use {
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
pub mod arg_parser;
|
1 |
#![allow(clippy::integer_arithmetic)]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
pub use solana_test_validator as test_validator;
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
#[cfg(not(target_env = "msvc"))]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
pub mod vest_instruction;
|
1 |
#![cfg_attr(RUSTC_WITH_SPECIALIZATION, feature(min_specialization))]
|
2 |
#![allow(clippy::integer_arithmetic)]
|
1 |
//! A command-line executable for monitoring the health of a cluster
|
2 |
#![allow(clippy::integer_arithmetic)]
|
1 |
#![allow(clippy::integer_arithmetic, clippy::op_ref)]
|
4 |
clippy::cast_possible_wrap,
|
5 |
clippy::integer_arithmetic,
|
6 |
clippy::std_instead_of_core,
|
3 |
clippy::as_conversions,
|
4 |
clippy::integer_arithmetic,
|
5 |
clippy::cast_possible_wrap,
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
//! # Concurrent Merkle Tree
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
use rand::thread_rng;
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
#![deny(missing_docs)]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
use std::str::FromStr;
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
use std::borrow::Borrow;
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
#![deny(missing_docs)]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
use clap::{
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
pub mod client;
|
8 |
clippy::use_debug,
|
9 |
clippy::integer_arithmetic,
|
10 |
clippy::default_trait_access,
|
4 |
#![allow(clippy::manual_range_contains)]
|
5 |
#![allow(clippy::integer_arithmetic)]
|
8 |
)]
|
9 |
#![allow(clippy::integer_arithmetic)]
|
10 |
#![allow(clippy::indexing_slicing)]
|
212 |
clippy::implicit_return,
|
213 |
clippy::integer_arithmetic,
|
214 |
clippy::exhaustive_structs,
|
31 |
#![allow(clippy::multiple_crate_versions)]
|
32 |
#![allow(clippy::integer_arithmetic, clippy::arithmetic_side_effects)] // issue with strum
|
33 |
// restriction we ignore
|
39 |
clippy::arithmetic_side_effects,
|
40 |
clippy::integer_arithmetic,
|
41 |
clippy::shadow_same
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
#[macro_use]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
mod bucket;
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
pub mod config_instruction;
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
pub mod macros;
|
210 |
mod tests {
|
211 |
#![allow(clippy::integer_arithmetic)]
|
212 |
use {super::*, std::io::Write};
|
1 |
#![allow(clippy::integer_arithmetic)]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
pub mod counter;
|
1 |
//! The `net_utils` module assists with networking
|
2 |
#![allow(clippy::integer_arithmetic)]
|
3 |
use {
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
#![feature(test)]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
#![feature(test)]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
//! Utilities for the [borsh] serialization format.
|
10 |
#![allow(clippy::integer_arithmetic)]
|
3 |
#![allow(clippy::integer_arithmetic)]
|
4 |
use {
|
14 |
#![allow(clippy::integer_arithmetic)]
|
3 |
#![allow(clippy::integer_arithmetic)]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
1 |
#![feature(test)]
|
2 |
#![allow(clippy::integer_arithmetic)]
|
1 |
#![feature(test)]
|
2 |
#![allow(clippy::integer_arithmetic)]
|
1 |
#![cfg_attr(RUSTC_WITH_SPECIALIZATION, feature(min_specialization))]
|
2 |
#![allow(clippy::integer_arithmetic)]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
use {
|
1 |
#![feature(test)]
|
2 |
#![allow(clippy::integer_arithmetic)]
|
1 |
#![cfg_attr(RUSTC_WITH_SPECIALIZATION, feature(min_specialization))]
|
2 |
#![allow(clippy::integer_arithmetic)]
|
3 |
#[deprecated(
|
1 |
#![allow(clippy::integer_arithmetic)]
|
2 |
pub mod nonblocking;
|
1 |
#![allow(clippy::integer_arithmetic)]
|
1 |
#![allow(clippy::integer_arithmetic)]
|
1 |
#![cfg_attr(RUSTC_WITH_SPECIALIZATION, feature(min_specialization))]
|
2 |
#![allow(clippy::integer_arithmetic)]
|
1 |
#![allow(clippy::integer_arithmetic, clippy::op_ref)]
|
41 |
clippy::panic_in_result_fn,
|
42 |
clippy::integer_arithmetic, // TODO
|
43 |
clippy::indexing_slicing, // TODO
|
24 |
// allocation will fail far, far earlier than the arithmetic will fail.
|
25 |
clippy::integer_arithmetic,
|
26 |
)]
|