86 |
/// thread.
|
87 |
#[allow(clippy::range_plus_one, clippy::missing_panics_doc)]
|
88 |
pub async fn run(&self) -> Result<(), AcceptXmrError> {
|
123 |
#[test]
|
124 |
#[allow(clippy::range_plus_one)]
|
125 |
fn test_accumulator_proof_sibling_overflow() {
|
422 |
#[allow(clippy::option_if_let_else, clippy::range_plus_one)]
|
423 |
// ^-- See explanations in the function code.
|
384 |
#[allow(clippy::range_plus_one)]
|
385 |
let range = if op == ".." {
|
378 |
#[inline]
|
379 |
#[allow(clippy::range_plus_one)]
|
380 |
fn from((token, scope): (Token, usize)) -> Self {
|
78 |
#[allow(clippy::assign_op_pattern)]
|
79 |
#[allow(clippy::range_plus_one)]
|
80 |
let matcher: Matcher3<_> =
|
124 |
// content (obs-text) as opaque data."
|
125 |
#[allow(clippy::range_plus_one)]
|
126 |
#[allow(clippy::assign_op_pattern)]
|
84 |
#[allow(clippy::assign_op_pattern)]
|
85 |
#[allow(clippy::range_plus_one)]
|
86 |
let content_length_matcher: Matcher1<_> =
|
155 |
// Lint: Makes code less clear.
|
156 |
#[allow(clippy::range_plus_one)]
|
157 |
line.highlights
|
383 |
/// Panics if the process writes non-UTF bytes to stdout.
|
384 |
#[allow(clippy::if_not_else, clippy::range_plus_one, clippy::assign_op_pattern)]
|
385 |
pub fn parse_rustc_version(version: impl AsRef<str>) -> Result<(String, RustChannel), String> {
|
65 |
// `hal::image::SubresourceRange` in gfx to use `std::ops::RangeBounds`.
|
66 |
#[allow(clippy::range_plus_one)]
|
67 |
(
|
106 |
// `std::ops::RangeBounds`.
|
107 |
#[allow(clippy::range_plus_one)]
|
108 |
let pending = PendingTransition {
|
224 |
// `std::ops::RangeBounds`.
|
225 |
#[allow(clippy::range_plus_one)]
|
226 |
let pending = PendingTransition {
|
31 |
clippy::manual_range_contains,
|
32 |
clippy::range_plus_one,
|
33 |
clippy::transmute_ptr_to_ptr,
|
9 |
clippy::ptr_offset_with_cast,
|
10 |
clippy::range_plus_one,
|
11 |
clippy::transmute_ptr_to_ptr
|
10 |
clippy::ptr_offset_with_cast,
|
11 |
clippy::range_plus_one,
|
12 |
clippy::transmute_ptr_to_ptr
|
92 |
is_required: !optional,
|
93 |
#[allow(clippy::range_plus_one)]
|
94 |
range: (index..(index + 1)),
|
136 |
// a Range here, not a RangeInclusive<>
|
137 |
#[allow(clippy::range_plus_one)]
|
138 |
Some(Err(ParseError {
|
133 |
#[test]
|
134 |
#[allow(clippy::range_plus_one)]
|
135 |
fn test_accumulator_proof_sibling_overflow() {
|
467 |
#[allow(clippy::range_plus_one)]
|
468 |
pub fn weighted_lpc_from_auto_corr<F>(
|
918 |
#[allow(clippy::range_plus_one)]
|
919 |
#[inline]
|
1016 |
#[allow(clippy::range_plus_one)]
|
1017 |
#[inline]
|
1020 |
}
|
1021 |
#[allow(clippy::range_plus_one)]
|
1022 |
#[inline]
|
115 |
fn len(&self) -> usize {
|
116 |
#[allow(clippy::range_plus_one)] // for ExactSizeIterator impl
|
117 |
let len = (self.low as u32..self.high as u32 + 1).len() as u32;
|
1542 |
// https://github.com/rust-lang/rust-clippy/issues/3307
|
1543 |
#[allow(clippy::range_plus_one)]
|
1544 |
pub fn n(&mut self, n: usize) {
|
125 |
} else {
|
126 |
#[allow(clippy::range_plus_one)]
|
127 |
&self[*index.start()..*index.end() + 1]
|
153 |
} else {
|
154 |
#[allow(clippy::range_plus_one)]
|
155 |
&self[..index.end + 1]
|
344 |
#[allow(clippy::range_plus_one)]
|
345 |
#[must_use = "SECURITY WARNING: Ignoring a Result can have real security implications."]
|
22 |
/// This function provides the on-axis part of its range
|
23 |
#[allow(clippy::range_plus_one)]
|
24 |
fn axis_pixel_range(&self, limit: (i32, i32)) -> Range<i32> {
|
210 |
/// This function provides the on-axis part of its range
|
211 |
#[allow(clippy::range_plus_one)]
|
212 |
fn axis_pixel_range(&self, limit: (i32, i32)) -> Range<i32> {
|
204 |
/// This function provides the on-axis part of its range
|
205 |
#[allow(clippy::range_plus_one)]
|
206 |
fn axis_pixel_range(&self, limit: (i32, i32)) -> Range<i32> {
|
878 |
#[test]
|
879 |
#[allow(clippy::range_plus_one)]
|
880 |
fn ack_coding() {
|
256 |
type Output = [T];
|
257 |
#[allow(clippy::range_plus_one)]
|
258 |
fn index(&self, index: Range<usize>) -> &Self::Output {
|
272 |
impl<T> IndexMut<Range<usize>> for Vector<T> {
|
273 |
#[allow(clippy::range_plus_one)]
|
274 |
fn index_mut(&mut self, index: Range<usize>) -> &mut Self::Output {
|
367 |
#[allow(clippy::range_plus_one)]
|
368 |
fn key_sizes(aead_alg: &'static aead::Algorithm) {
|
394 |
// Test that we reject non-standard nonce sizes.
|
395 |
#[allow(clippy::range_plus_one)]
|
396 |
#[test]
|
411 |
#[allow(clippy::range_plus_one)]
|
412 |
#[test]
|
49 |
#[allow(clippy::range_plus_one)]
|
50 |
fn test_sample_len(alg: &'static quic::Algorithm) {
|
48 |
#[test]
|
49 |
#[allow(clippy::range_plus_one)] // remove_range needs an exclusive range
|
50 |
fn remove_range_array() {
|
71 |
#[test]
|
72 |
#[allow(clippy::range_plus_one)] // remove_range needs an exclusive range
|
73 |
fn remove_range_bitmap() {
|
9 |
mod ir;
|
10 |
#[allow(clippy::range_plus_one)]
|
11 |
mod parser;
|
434 |
if range.start < range.end {
|
435 |
#[allow(clippy::range_plus_one)]
|
436 |
match step.to_i32() {
|
265 |
// then step is bigger than the than len of the list, no question
|
266 |
#[allow(clippy::range_plus_one)]
|
267 |
PyList::_set_stepped_slice(
|
616 |
if range.start < range.end {
|
617 |
#[allow(clippy::range_plus_one)]
|
618 |
match step.to_isize() {
|
53 |
if range.start < range.end {
|
54 |
#[allow(clippy::range_plus_one)]
|
55 |
match step.to_i32() {
|
204 |
);
|
205 |
#[allow(clippy::range_plus_one)]
|
206 |
prev_matching_range.extend(&(n..n + 1))
|
252 |
);
|
253 |
#[allow(clippy::range_plus_one)]
|
254 |
prev_matching_range.extend(&(n..n + 1))
|
302 |
);
|
303 |
#[allow(clippy::range_plus_one)]
|
304 |
prev_matching_range.extend(&(n..n + 1))
|
19 |
impl IntoRange for usize {
|
20 |
#[allow(clippy::range_plus_one)]
|
21 |
fn into_range( self, _: usize ) -> Range< usize > {
|
46 |
impl IntoRange for RangeInclusive< usize > {
|
47 |
#[allow(clippy::range_plus_one)]
|
48 |
fn into_range( self, _: usize ) -> Range< usize > {
|
60 |
impl IntoRange for RangeToInclusive< usize > {
|
61 |
#[allow(clippy::range_plus_one)]
|
62 |
fn into_range( self, _: usize ) -> Range< usize > {
|
78 |
#[allow(clippy::assign_op_pattern)]
|
79 |
#[allow(clippy::range_plus_one)]
|
80 |
let matcher: Matcher3<_> =
|
124 |
// content (obs-text) as opaque data."
|
125 |
#[allow(clippy::range_plus_one)]
|
126 |
#[allow(clippy::assign_op_pattern)]
|
84 |
#[allow(clippy::assign_op_pattern)]
|
85 |
#[allow(clippy::range_plus_one)]
|
86 |
let content_length_matcher: Matcher1<_> =
|
1392 |
let mut values = sl.range(min, max);
|
1393 |
#[allow(clippy::range_plus_one)]
|
1394 |
let mut expects = match (min, max) {
|
1116 |
let mut values = sl.range(min, max);
|
1117 |
#[allow(clippy::range_plus_one)]
|
1118 |
let mut expects = match (min, max) {
|
1156 |
let mut values = sl.range(min, max);
|
1157 |
#[allow(clippy::range_plus_one)]
|
1158 |
let mut expects = match (min, max) {
|
1352 |
let mut values = sm.range(min, max);
|
1353 |
#[allow(clippy::range_plus_one)]
|
1354 |
let mut expects = match (min, max) {
|
83 |
#[allow(clippy::range_plus_one)] // DATATYPE_SIZE equals 1 where Clippy wants to use an inclusive range
|
84 |
let datatype = <[u8; DATATYPE_SIZE]>::try_from(&bytes[position..position + DATATYPE_SIZE]).unwrap();
|
139 |
#[test]
|
140 |
#[allow(clippy::range_plus_one)]
|
141 |
fn test_accumulator_proof_sibling_overflow() {
|
20 |
clippy::explicit_iter_loop,
|
21 |
clippy::range_plus_one,
|
22 |
clippy::default_trait_access,
|
169 |
/// returned. This should be the same number obtained from `self.bytes_size()`.
|
170 |
#[allow(clippy::range_plus_one)]
|
171 |
pub fn copy_to_slice(&self, slice: &mut [u8]) -> Result<usize, ToSliceError> {
|
14 |
// I really do not like the a..=b syntax
|
15 |
#![allow(clippy::range_plus_one)]
|
29 |
#![allow(clippy::module_name_repetitions)]
|
30 |
#![allow(clippy::range_plus_one)]
|
31 |
#![allow(clippy::too_many_lines)]
|
10 |
clippy::missing_errors_doc,
|
11 |
clippy::range_plus_one,
|
12 |
clippy::type_complexity,
|
1 |
#![warn(clippy::all)]
|
2 |
#![allow(clippy::range_plus_one, clippy::many_single_char_names, clippy::too_many_arguments, clippy::cast_lossless, unused_variables)]
|
1 |
#![allow(clippy::blocks_in_if_conditions, clippy::range_plus_one)]
|
43 |
clippy::must_use_candidate,
|
44 |
clippy::range_plus_one,
|
45 |
clippy::semicolon_if_nothing_returned, // https://github.com/rust-lang/rust-clippy/issues/7768
|
13 |
// The pattern `SIZE / 2 + 1` is common in this code. Removing the trailing `+ 1` is confusing.
|
14 |
#![allow(clippy::range_plus_one)]
|
20 |
#![allow(clippy::range_plus_one)]
|
10 |
#![allow(clippy::range_plus_one)]
|
18 |
clippy::needless_doctest_main,
|
19 |
clippy::range_plus_one,
|
20 |
clippy::trivially_copy_pass_by_ref,
|
18 |
clippy::needless_doctest_main,
|
19 |
clippy::range_plus_one,
|
20 |
clippy::trivially_copy_pass_by_ref,
|
4 |
#![allow(clippy::new_without_default)]
|
5 |
#![allow(clippy::range_plus_one)]
|
6 |
#![allow(clippy::too_many_arguments)]
|
112 |
clippy::many_single_char_names,
|
113 |
clippy::range_plus_one,
|
114 |
clippy::suspicious_arithmetic_impl,
|
7 |
clippy::many_single_char_names,
|
8 |
clippy::range_plus_one,
|
9 |
clippy::suspicious_arithmetic_impl,
|
64 |
clippy::many_single_char_names,
|
65 |
clippy::range_plus_one,
|
66 |
clippy::suspicious_arithmetic_impl,
|
7 |
clippy::many_single_char_names,
|
8 |
clippy::range_plus_one,
|
9 |
clippy::suspicious_arithmetic_impl,
|
93 |
// I really do not like the a..=b syntax
|
94 |
#![allow(clippy::range_plus_one)]
|
95 |
// allow single-character names
|
10 |
#![allow(clippy::range_plus_one)]
|
227 |
#![allow(clippy::needless_return, clippy::redundant_closure, clippy::needless_lifetimes)] // style
|
228 |
#![allow(clippy::range_plus_one)] // edge case: I think 1..x+1 is clearer than 1..=x
|
229 |
#![allow(clippy::cast_lossless)] // improves portability when values are limited by the OS anyway
|
16 |
clippy::needless_pass_by_value,
|
17 |
clippy::range_plus_one,
|
18 |
clippy::redundant_closure,
|
13 |
clippy::needless_pass_by_value,
|
14 |
clippy::range_plus_one,
|
15 |
clippy::redundant_closure,
|
3 |
clippy::must_use_candidate,
|
4 |
clippy::range_plus_one,
|
5 |
clippy::module_name_repetitions,
|
9 |
clippy::option_if_let_else,
|
10 |
clippy::range_plus_one,
|
11 |
clippy::single_match_else,
|
8 |
clippy::option_if_let_else,
|
9 |
clippy::range_plus_one,
|
10 |
clippy::single_match_else,
|
9 |
clippy::option_if_let_else,
|
10 |
clippy::range_plus_one,
|
11 |
clippy::single_match_else,
|
8 |
clippy::option_if_let_else,
|
9 |
clippy::range_plus_one,
|
10 |
clippy::single_match_else,
|
224 |
clippy::non_ascii_literal,
|
225 |
clippy::range_plus_one,
|
226 |
clippy::similar_names,
|
235 |
clippy::non_ascii_literal,
|
236 |
clippy::range_plus_one,
|
237 |
clippy::single_match_else,
|
13 |
// limitations under the License.
|
14 |
#![allow(clippy::range_plus_one)]
|