1223 |
#[allow(clippy::option_if_let_else)]
|
1224 |
pub fn read_u8(&mut self, pos: Option<usize>) -> Result<u8> {
|
1234 |
#[allow(clippy::option_if_let_else)]
|
1235 |
pub fn read_i8(&mut self, pos: Option<usize>) -> Result<i8> {
|
1245 |
#[allow(clippy::option_if_let_else)]
|
1246 |
pub fn read_u16(&mut self, pos: Option<usize>) -> Result<u16> {
|
1264 |
#[allow(clippy::option_if_let_else)]
|
1265 |
pub fn read_u32(&mut self, pos: Option<usize>) -> Result<u32> {
|
1283 |
#[allow(clippy::option_if_let_else)]
|
1284 |
pub fn read_u64(&mut self, pos: Option<usize>) -> Result<u64> {
|
288 |
let next_slash = path.find('/');
|
289 |
#[allow(clippy::option_if_let_else)] // use same ctx as mutable
|
290 |
let pos = if let Some(pos) = next_slash {
|
269 |
#[allow(clippy::option_if_let_else)] // false positive
|
270 |
fn compile_object<'a, T: Grammar<'a>>(
|
422 |
#[allow(clippy::option_if_let_else, clippy::range_plus_one)]
|
423 |
// ^-- See explanations in the function code.
|
868 |
#[allow(clippy::option_if_let_else)]
|
869 |
fn statement<'a, T, Ty>(input: InputSpan<'a>) -> NomResult<'a, SpannedStatement<'a, T::Base>>
|
362 |
/// single output.
|
363 |
#[allow(clippy::option_if_let_else)]
|
364 |
pub fn new_from_siso(ss: &SsGen<T, U>) -> Result<Self, Error> {
|
227 |
impl<P: AsRef<Path> + Into<PathBuf>> From<P> for Input {
|
228 |
#[allow(clippy::option_if_let_else)]
|
229 |
fn from(path: P) -> Self {
|
70 |
/// Detect scene changes using rav1e scene detector.
|
71 |
#[allow(clippy::option_if_let_else)]
|
72 |
pub fn scene_detect(
|
42 |
#[allow(clippy::option_if_let_else)]
|
43 |
let cookie_id = if let Some(cookie_id) = jar
|
64 |
// https://github.com/rust-lang/rust-clippy/issues/5822
|
65 |
#[allow(clippy::option_if_let_else)]
|
66 |
if let Some(error) = all_errors {
|
111 |
// https://github.com/rust-lang/rust-clippy/issues/5822
|
112 |
#[allow(clippy::option_if_let_else)]
|
113 |
if let Some(error) = all_errors {
|
51 |
#[allow(clippy::option_if_let_else, clippy::single_match_else)]
|
52 |
fn main() {
|
483 |
},
|
484 |
#[allow(clippy::option_if_let_else)]
|
485 |
Some(',') =>
|
653 |
#[allow(clippy::option_if_let_else)]
|
654 |
/// # Format Name.
|
147 |
#[allow(clippy::option_if_let_else)]
|
148 |
/// # History Path.
|
103 |
#[allow(clippy::option_if_let_else)] // `Option::map_or_else` cannot be used in const fns
|
104 |
const fn update(mut self, byte: u8) -> (Self, Option<u8>) {
|
334 |
#[must_use]
|
335 |
#[allow(clippy::option_if_let_else)]
|
336 |
pub fn decrypt(pass: &[u8], payload: &[u8]) -> Option<Vec<u8>> {
|
1036 |
// false positive: due to mut borrowing
|
1037 |
#[allow(clippy::option_if_let_else)]
|
1038 |
if let Some(existing_len) = acc.as_mut() {
|
604 |
Some(content_length) => {
|
605 |
#[allow(clippy::option_if_let_else)]
|
606 |
// False trigger. See https://github.com/rust-lang/rust-clippy/issues/5822.
|
275 |
impl<T: ?Sized + fmt::Debug> fmt::Debug for Mutex<T> {
|
276 |
#[allow(clippy::option_if_let_else)]
|
277 |
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
120 |
impl<T, E> Inner<T, E> {
|
121 |
#[allow(clippy::option_if_let_else)]
|
122 |
fn send(&self, value: T) -> Result<(), SendError<T>> {
|
588 |
// reason: This would fail as we cannot move out of `self` because it is borrowed
|
589 |
#[allow(clippy::option_if_let_else)]
|
590 |
match counter {
|
653 |
// reason: This would fail as we cannot move out of `self` because it is borrowed
|
654 |
#[allow(clippy::option_if_let_else)]
|
655 |
match counter {
|
210 |
// `map_or`-solution won't compile due to moved `key` in `default`-closure.
|
211 |
#[allow(clippy::option_if_let_else)]
|
212 |
pub fn insert_group(&mut self, bucket_key: GroupKey) -> Result<(), GroupKey>
|
572 |
// `map_or`-solution won't compile due to moved `key` in `default`-closure.
|
573 |
#[allow(clippy::option_if_let_else)]
|
574 |
pub fn insert_enum(&mut self, key: Key) -> Result<(), Key>
|
158 |
fn set_head_priv(&mut self, head: BlockNumber) -> bool {
|
159 |
#[allow(clippy::option_if_let_else)]
|
160 |
let recompute_cache = {
|
339 |
}
|
340 |
#[allow(clippy::option_if_let_else)]
|
341 |
let fd = if let Some(fd) = fd_opt {
|
544 |
f.write_str("dyn Dyncast = ")?;
|
545 |
#[allow(clippy::option_if_let_else)] // Can't because `f`.
|
546 |
if let Some(debug) = unsafe { self.dyncast_::<dyn 'a + Debug, dyn Debug>() } {
|
555 |
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
556 |
#[allow(clippy::option_if_let_else)] // Can't because `f`.
|
557 |
if let Some(display) = unsafe { self.dyncast_::<dyn 'a + Display, dyn Display>() } {
|
116 |
#[allow(clippy::option_if_let_else)]
|
117 |
#[cfg(target_os = "linux")]
|
411 |
#[allow(clippy::option_if_let_else)] // This is better.
|
412 |
/// # Set Title.
|
741 |
#[allow(clippy::option_if_let_else)] // This is better.
|
742 |
/// # Tick Title.
|
39 |
#[allow(clippy::option_if_let_else)]
|
40 |
let repo_path = if let Some(w) = workdir {
|
221 |
.and_then(|last| if last.len() < limit { Some(last) } else { None });
|
222 |
#[allow(clippy::option_if_let_else)] // Epic borrow checker fail
|
223 |
if let Some(st) = storage {
|
230 |
fn pop(&mut self) -> Option<Self::Element> {
|
231 |
#[allow(clippy::option_if_let_else)] // Same here
|
232 |
if let Some(val) = self.last_mut().and_then(|storage| storage.pop()) {
|
335 |
}
|
336 |
#[allow(clippy::option_if_let_else)] // I hate map_or_else
|
337 |
fn add(&mut self, element: Self::Element) -> usize {
|
135 |
let layout = element.as_widget().layout(renderer, limits);
|
136 |
#[allow(clippy::option_if_let_else)]
|
137 |
match column_widths.get_mut(column) {
|
364 |
#[allow(clippy::option_if_let_else)] // false positive; `serializer` is moved into both clauses
|
365 |
pub fn serialize<T, S>(value: &Option<T>, serializer: S) -> Result<S::Ok, S::Error>
|
85 |
// We have to borrow same mutably, which isn't possible in closures.
|
86 |
#[allow(clippy::option_if_let_else)]
|
87 |
if let Some(name) = last_name {
|
221 |
// I think this way is better and the lint is in nursey.
|
222 |
#[allow(clippy::option_if_let_else)]
|
223 |
let mes = if let Some(len) = len
|
541 |
// Using let else here as self needs to be accessed in the else branch.
|
542 |
#[allow(clippy::option_if_let_else)]
|
543 |
Ok(ServedShMemResponse::Mapping(
|
138 |
{
|
139 |
#[allow(clippy::option_if_let_else)] // we can't mutate state in a closure
|
140 |
let meta = if let Some(meta) = state.metadata_mut().get_mut::<CmpValuesMetadata>() {
|
979 |
// println!("{:x}", base_value);
|
980 |
#[allow(clippy::option_if_let_else)]
|
981 |
let error = if fault_address >= stack_start && fault_address < stack_end {
|
1176 |
let (stack_start, stack_end) = Self::current_stack();
|
1177 |
#[allow(clippy::option_if_let_else)]
|
1178 |
let error = if fault_address >= stack_start && fault_address < stack_end {
|
268 |
let mut registry = REGISTRY.write().unwrap();
|
269 |
#[allow(clippy::option_if_let_else)]
|
270 |
if let Some(highest) = registry.entries.keys().max() {
|
680 |
Err(error) => {
|
681 |
#[allow(clippy::option_if_let_else)]
|
682 |
let actual_panic = if let Some(actual_panic) = error.downcast_ref::<String>() {
|
987 |
#[allow(clippy::option_if_let_else)]
|
988 |
fn step(&mut self) -> NextIterValue {
|
189 |
#[allow(clippy::option_if_let_else)]
|
190 |
fn try_from(value: String) -> Result<Self, Self::Error> {
|
71 |
/// with it.
|
72 |
#[allow(clippy::option_if_let_else)]
|
73 |
fn delete_endpoint(
|
314 |
#[allow(clippy::option_if_let_else)]
|
315 |
fn handle(
|
467 |
/// provided [`RtcStats`].
|
468 |
#[allow(clippy::option_if_let_else)]
|
469 |
pub fn send_peer_stats(&self, stats: RtcStats) {
|
1040 |
#[allow(clippy::option_if_let_else)]
|
1041 |
fn step(&mut self) -> NextIterValue {
|
47 |
// ALLOW if let is easier to comprehend
|
48 |
#[allow(clippy::option_if_let_else)]
|
49 |
if let Some(dirs) = &config.dirs {
|
97 |
// ALLOW if let is easier to comprehend
|
98 |
#[allow(clippy::option_if_let_else)]
|
99 |
let e = if let Some(rc) = ecode.code() {
|
131 |
// This would actually be _less clear_ using a giant `map_or_else`.
|
132 |
#[allow(clippy::option_if_let_else)]
|
133 |
if let Some(value) = self.next_value.take() {
|
127 |
// This would actually be _less clear_ using a giant `map_or_else`.
|
128 |
#[allow(clippy::option_if_let_else)]
|
129 |
if let Some(value) = self.next_value.take() {
|
15 |
#[allow(clippy::option_if_let_else)]
|
16 |
fn query_opt<'a, S: Into<Option<&'a String>>>(
|
193 |
let value_color_pos = as_chars.position(|c| !c.is_digit(10));
|
194 |
#[allow(clippy::option_if_let_else)]
|
195 |
let (value, block_color) = if let Some(pos) = value_color_pos {
|
1006 |
#[allow(clippy::option_if_let_else)]
|
1007 |
let (value, block_color) = if let Some(pos) = value_color_pos {
|
141 |
let hash = hash_name(name);
|
142 |
#[allow(clippy::option_if_let_else)]
|
143 |
if let Some(file_id) = self.file_id_by_crc32.get(&hash) {
|
218 |
fn validate_bearer_access_token(lock: &mut MutexGuard<Tokens>) -> Result<String, RefreshError> {
|
219 |
#[allow(clippy::option_if_let_else)]
|
220 |
match &lock.bearer_access_token {
|
21 |
pub(crate) fn path_from_env_or_home(env: &str, file_name: &str) -> Result<PathBuf, LoadError> {
|
22 |
#[allow(clippy::option_if_let_else)]
|
23 |
match std::env::var(env) {
|
110 |
#[cfg(feature = "decode-from-svg")]
|
111 |
#[allow(clippy::option_if_let_else)]
|
112 |
let input_format = match arg.input {
|
126 |
};
|
127 |
#[allow(clippy::option_if_let_else)]
|
128 |
let image = match input_format {
|
32 |
eprintln!("Error: {err:?}");
|
33 |
#[allow(clippy::option_if_let_else)]
|
34 |
if let Some(e) = err.downcast_ref::<io::Error>() {
|
22 |
impl From<String> for LogLine {
|
23 |
#[allow(clippy::option_if_let_else)]
|
24 |
fn from(line: String) -> Self {
|
65 |
#[inline]
|
66 |
#[allow(clippy::option_if_let_else)]
|
67 |
fn nth(&mut self, n: usize) -> Option<Self::Item> {
|
131 |
// value.
|
132 |
#[allow(clippy::option_if_let_else)]
|
133 |
if let Some(ci) = state.pec_decoder.next(c)? {
|
203 |
pub fn alloc<T>(&self, value: T) -> &mut T {
|
204 |
#[allow(clippy::option_if_let_else)]
|
205 |
if let Ok(ref_mut) = self.try_alloc(value) {
|
218 |
pub fn alloc_str(&self, value: &str) -> &mut str {
|
219 |
#[allow(clippy::option_if_let_else)]
|
220 |
if let Ok(ref_mut) = self.try_alloc_str(value) {
|
233 |
pub fn alloc_slice_copy<T: Copy>(&self, value: &[T]) -> &mut [T] {
|
234 |
#[allow(clippy::option_if_let_else)]
|
235 |
if let Ok(ref_mut) = self.try_alloc_slice_copy(value) {
|
248 |
pub fn alloc_slice_clone<T: Clone>(&self, value: &[T]) -> &mut [T] {
|
249 |
#[allow(clippy::option_if_let_else)]
|
250 |
if let Ok(ref_mut) = self.try_alloc_slice_clone(value) {
|
69 |
// Allowed because using map requires a `self` borrow
|
70 |
#[allow(clippy::option_if_let_else)]
|
71 |
pub(super) fn complete(&mut self, range: Range) -> Result<(), Error> {
|
113 |
#[allow(clippy::option_if_let_else)] // clippy FP
|
114 |
if let Some(scripts) = res.get_mut("scripts") {
|
382 |
fn getEncodingPrefix(string: &str) -> (EncodingPrefix, &str) {
|
383 |
#[allow(clippy::option_if_let_else)]
|
384 |
if let Some(res) = string.strip_prefix("u8") {
|
782 |
) -> Result<FileTokPos<Self>, Option<CompileMsg>> {
|
783 |
#[allow(clippy::option_if_let_else)]
|
784 |
if let Some(res) = string.strip_prefix("0x") {
|
578 |
#[allow(clippy::option_if_let_else)]
|
579 |
impl<'d, A: Regex<'d>, B: Regex<'d>> Regex<'d> for Or<'d, A, B> {
|
91 |
eprintln!("Error: {err:?}");
|
92 |
#[allow(clippy::option_if_let_else)]
|
93 |
if let Some(e) = err.downcast_ref::<io::Error>() {
|
334 |
#[allow(clippy::option_if_let_else)]
|
335 |
if let Some(caps) = NOT_FOUND_RE.captures(&stderr_buf) {
|
380 |
#[allow(clippy::option_if_let_else)]
|
381 |
fn patch_or_replace(
|
119 |
#[allow(clippy::option_if_let_else)]
|
120 |
let (mean, weight) = if let Some(old_input) = self.state.taps.push_back(input.clone()) {
|
282 |
fn should_insert(&self, value: &T, current: usize, index: usize) -> bool {
|
283 |
#[allow(clippy::option_if_let_else)]
|
284 |
if let Some(ref v) = self.state.buffer[current].value {
|
364 |
unsafe fn update_head(&mut self, value: &T) {
|
365 |
#[allow(clippy::option_if_let_else)]
|
366 |
let should_update_head = if let Some(ref head) = self.state.buffer[self.state.head].value {
|
379 |
|(value, exclude)| {
|
380 |
#[allow(clippy::option_if_let_else)]
|
381 |
let excludes = if let Some(exclude) = exclude {
|
349 |
// ALLOW: false positive: self borrowed both mutable and immutable
|
350 |
#[allow(clippy::option_if_let_else)]
|
351 |
if let Some(summary) = self.fds.get_mut(&fd) {
|
363 |
// ALLOW: false positive: self borrowed both mutable and immutable
|
364 |
#[allow(clippy::option_if_let_else)]
|
365 |
if let Some(summary) = self.fds.get_mut(&fd) {
|
377 |
// ALLOW: false positive: self borrowed both mutable and immutable
|
378 |
#[allow(clippy::option_if_let_else)]
|
379 |
if let Some(summary) = self.fds.get_mut(&fd) {
|
403 |
// ALLOW: false positive: self borrowed both mutable and immutable
|
404 |
#[allow(clippy::option_if_let_else)]
|
405 |
if let Some(summary) = self.fds.get_mut(&fd) {
|
157 |
fn from(subject: &str) -> Self {
|
158 |
#[allow(clippy::option_if_let_else)]
|
159 |
if let Some(caps) = RELEASE_REGEX1.captures(subject) {
|
114 |
fn replace(&mut self, val: V) -> Option<V> {
|
115 |
#[allow(clippy::option_if_let_else)] // false positive: moving `val`
|
116 |
if let Some(old) = self.iter_mut().find(|v| *v == &val) {
|
101 |
#[must_use]
|
102 |
#[allow(clippy::option_if_let_else)]
|
103 |
pub fn format(
|
204 |
#![allow(clippy::items_after_statements)]
|
205 |
#![allow(clippy::option_if_let_else)]
|
1122 |
#[allow(clippy::option_if_let_else)]
|
1123 |
if let Some(variant) = path_element.variant {
|
35 |
/// Writes the specified text displayed to the user that should be subjected to wrapping.
|
36 |
#[allow(clippy::option_if_let_else)] // false positive
|
37 |
fn write_text(&mut self, s: &str) -> io::Result<()> {
|
59 |
/// Writes the specified HTML `entity` as if it were displayed as a single char.
|
60 |
#[allow(clippy::option_if_let_else)] // false positive
|
61 |
fn write_html_entity(&mut self, entity: &str) -> io::Result<()> {
|
274 |
#[allow(clippy::option_if_let_else)] // cannot use map_or_else because borrow-checker
|
275 |
if let Some((idx, data, rest)) = split_once(input, search) {
|
2196 |
for g in groups {
|
2197 |
#[allow(clippy::option_if_let_else)]
|
2198 |
if let Some(last) = patterns.last_mut() {
|
1225 |
// we allow this because of the borrow checker
|
1226 |
clippy::option_if_let_else,
|
1227 |
clippy::too_many_lines
|
107 |
fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
|
108 |
#[allow(clippy::option_if_let_else)]
|
109 |
if let Some(guard) = self.try_read() {
|
109 |
#[allow(clippy::option_if_let_else)]
|
110 |
/// Adds a role to metadata using targets Editor
|
143 |
#[allow(clippy::option_if_let_else)]
|
144 |
/// Adds a role to metadata using repo Editor
|
93 |
unsafe fn unchecked_unwrap(self) -> T {
|
94 |
#[allow(clippy::option_if_let_else)]
|
95 |
if cfg!(debug_assertions) && cfg!(feature = "debug_checks") {
|
104 |
unsafe fn unchecked_expect(self, msg: &str) -> T {
|
105 |
#[allow(clippy::option_if_let_else)]
|
106 |
if cfg!(debug_assertions) && cfg!(feature = "debug_checks") {
|
117 |
unsafe fn unchecked_unwrap(self) -> T {
|
118 |
#[allow(clippy::option_if_let_else)]
|
119 |
if cfg!(debug_assertions) && cfg!(feature = "debug_checks") {
|
128 |
unsafe fn unchecked_expect(self, msg: &str) -> T {
|
129 |
#[allow(clippy::option_if_let_else)]
|
130 |
if cfg!(debug_assertions) && cfg!(feature = "debug_checks") {
|
131 |
// value.
|
132 |
#[allow(clippy::option_if_let_else)]
|
133 |
if let Some(ci) = state.pec_decoder.next(c)? {
|
131 |
// value.
|
132 |
#[allow(clippy::option_if_let_else)]
|
133 |
if let Some(ci) = state.pec_decoder.next(c)? {
|
859 |
#[allow(clippy::option_if_let_else)] // No.
|
860 |
/// # Parse Slice.
|
156 |
impl<'de> Deserialize<'de> for FmtUtc2k {
|
157 |
#[allow(clippy::option_if_let_else)] // That looks bad here.
|
158 |
/// # Deserialize.
|
191 |
impl<'de> Deserialize<'de> for Utc2k {
|
192 |
#[allow(clippy::option_if_let_else)] // That looks bad here.
|
193 |
/// # Deserialize.
|
552 |
#[inline]
|
553 |
#[allow(clippy::cast_precision_loss, clippy::option_if_let_else)]
|
554 |
fn cast_f64(&self) -> Option<f64> {
|
567 |
#[inline]
|
568 |
#[allow(clippy::cast_precision_loss, clippy::option_if_let_else)]
|
569 |
fn try_cast_f64(&self) -> Result<f64, TryTypeError> {
|
97 |
}
|
98 |
#[allow(clippy::option_if_let_else)]
|
99 |
(SyslogFormat::Rfc3164, SyslogSocket::Unix { path }) => match path {
|
124 |
}
|
125 |
#[allow(clippy::option_if_let_else)]
|
126 |
(SyslogFormat::Rfc5424, SyslogSocket::Unix { path }) => match path {
|
149 |
#[allow(clippy::option_if_let_else)]
|
150 |
let body_hash = signature
|
78 |
None if parent.is_some() => {
|
79 |
#[allow(clippy::option_if_let_else)]
|
80 |
match parent.unwrap().iter().find(|h| h.name == "content-type") {
|
308 |
#[allow(clippy::option_if_let_else)]
|
309 |
Ok(match result.code() {
|
264 |
}
|
265 |
#[allow(clippy::option_if_let_else)]
|
266 |
match self.channels.cloned(&sid) {
|
188 |
clippy::single_match_else,
|
189 |
clippy::option_if_let_else,
|
190 |
clippy::missing_errors_doc
|
130 |
/// Check whether a condition is applicable
|
131 |
#[allow(clippy::option_if_let_else)]
|
132 |
pub fn check_condition(&self, s: &str) -> bool {
|
139 |
// Verify the match condition and apply this rule
|
140 |
#[allow(clippy::option_if_let_else)]
|
141 |
fn apply_pattern(&self, s: &str, kind: RuleType) -> Option<String> {
|
65 |
#[inline]
|
66 |
#[allow(clippy::option_if_let_else)]
|
67 |
fn line_splitter<'a>(s: &'a str, key: &str) -> Option<(&'a str, &'a str)> {
|
12 |
#![allow(
|
13 |
clippy::option_if_let_else,
|
14 |
clippy::module_name_repetitions,
|
115 |
module_name_repetitions,
|
116 |
option_if_let_else,
|
117 |
single_match_else,
|
44 |
clippy::must_use_candidate,
|
45 |
clippy::option_if_let_else,
|
46 |
clippy::similar_names,
|
1 |
#![allow(clippy::option_if_let_else)]
|
3 |
clippy::single_component_path_imports,
|
4 |
clippy::option_if_let_else
|
5 |
)]
|
1 |
#![allow(clippy::option_if_let_else)]
|
1 |
#![allow(clippy::option_if_let_else)]
|
2 |
use arangors_lite::document::options::{InsertOptions, RemoveOptions, UpdateOptions};
|
14 |
clippy::missing_errors_doc, // TODO clippy::missing_errors_doc
|
15 |
clippy::option_if_let_else,
|
16 |
clippy::module_name_repetitions,
|
134 |
clippy::similar_names, // too many false positives because of lhs / rhs
|
135 |
clippy::option_if_let_else // too many false positives
|
136 |
)]
|
48 |
// A `if let` / `else` sometimes looks better than using iterator adaptors
|
49 |
#![allow(clippy::option_if_let_else)]
|
50 |
// In tests, we're fine with indexing, since a panic is a failure.
|
156 |
#![deny(clippy::redundant_closure_for_method_calls)]
|
157 |
#![allow(clippy::option_if_let_else)]
|
158 |
#![allow(clippy::match_same_arms)]
|
3 |
clippy::type_complexity,
|
4 |
clippy::option_if_let_else
|
5 |
)]
|
3 |
clippy::type_complexity,
|
4 |
clippy::option_if_let_else,
|
5 |
clippy::suboptimal_flops
|
13 |
clippy::missing_errors_doc, // TODO clippy::missing_errors_doc
|
14 |
clippy::option_if_let_else,
|
15 |
clippy::multiple_crate_versions, // TODO custodian-password deps + x25119 deps
|
16 |
clippy::missing_errors_doc, // TODO clippy::missing_errors_doc
|
17 |
clippy::option_if_let_else,
|
18 |
clippy::multiple_crate_versions, // TODO custodian-password deps + x25119 deps
|
14 |
clippy::missing_errors_doc, // TODO clippy::missing_errors_doc
|
15 |
clippy::option_if_let_else,
|
16 |
clippy::module_name_repetitions,
|
14 |
clippy::missing_errors_doc, // TODO clippy::missing_errors_doc
|
15 |
clippy::option_if_let_else,
|
16 |
clippy::module_name_repetitions,
|
46 |
clippy::missing_panics_doc, // TODO clippy::missing_panics_doc
|
47 |
clippy::option_if_let_else,
|
48 |
clippy::module_name_repetitions,
|
13 |
clippy::missing_errors_doc, // TODO clippy::missing_errors_doc
|
14 |
clippy::option_if_let_else,
|
15 |
clippy::module_name_repetitions,
|
15 |
clippy::missing_panics_doc, // TODO clippy::missing_panics_doc
|
16 |
clippy::option_if_let_else,
|
17 |
clippy::module_name_repetitions,
|
14 |
#![allow(clippy::inline_always)]
|
15 |
#![allow(clippy::option_if_let_else)]
|
16 |
#![allow(unknown_lints)]
|
9 |
clippy::missing_panics_doc,
|
10 |
clippy::option_if_let_else,
|
11 |
clippy::cast_sign_loss,
|
59 |
#![allow(clippy::wildcard_imports)] // breaks code, false positives
|
60 |
#![allow(clippy::option_if_let_else)] // too pedantic, not that useful...
|
61 |
#![allow(clippy::upper_case_acronyms)] // questionable
|
6 |
clippy::module_name_repetitions,
|
7 |
clippy::option_if_let_else
|
8 |
)]
|
16 |
clippy::needless_pass_by_value,
|
17 |
clippy::option_if_let_else,
|
18 |
clippy::ptr_as_ptr,
|
31 |
#![allow(clippy::redundant_pub_crate)]
|
32 |
#![allow(clippy::option_if_let_else)]
|
12 |
#![cfg_attr(doc, deny(rustdoc::all))]
|
13 |
#![allow(clippy::option_if_let_else)]
|
393 |
clippy::must_use_candidate,
|
394 |
clippy::option_if_let_else,
|
395 |
clippy::ptr_arg,
|
30 |
clippy::shadow_unrelated,
|
31 |
clippy::option_if_let_else,
|
32 |
clippy::items_after_statements
|
78 |
clippy::needless_doctest_main,
|
79 |
clippy::option_if_let_else,
|
80 |
clippy::ptr_as_ptr,
|
66 |
clippy::nonminimal_bool,
|
67 |
clippy::option_if_let_else,
|
68 |
clippy::or_fun_call,
|
27 |
clippy::nonminimal_bool,
|
28 |
clippy::option_if_let_else,
|
29 |
clippy::or_fun_call,
|
17 |
clippy::nonminimal_bool,
|
18 |
clippy::option_if_let_else,
|
19 |
clippy::or_fun_call,
|
16 |
clippy::nonminimal_bool,
|
17 |
clippy::option_if_let_else,
|
18 |
clippy::or_fun_call,
|
66 |
// https://github.com/rust-lang/rust-clippy/issues/5822
|
67 |
clippy::option_if_let_else,
|
68 |
// https://github.com/rust-lang/rust/issues/72081
|
14 |
clippy::missing_errors_doc,
|
15 |
clippy::option_if_let_else
|
16 |
)]
|
1 |
#![deny(clippy::all, clippy::pedantic)]
|
2 |
#![allow(clippy::option_if_let_else)]
|
71 |
clippy::needless_pass_by_value,
|
72 |
clippy::option_if_let_else,
|
73 |
)]
|
11 |
)]
|
12 |
#![allow(clippy::option_if_let_else, clippy::module_name_repetitions)]
|
18 |
#![allow(clippy::non_ascii_literal)]
|
19 |
#![allow(clippy::option_if_let_else)]
|
20 |
#![allow(clippy::too_many_lines)]
|
12 |
clippy::module_name_repetitions,
|
13 |
clippy::option_if_let_else,
|
14 |
clippy::struct_excessive_bools
|
2 |
clippy::module_name_repetitions,
|
3 |
clippy::option_if_let_else,
|
4 |
clippy::single_match_else
|
59 |
clippy::mod_module_files,
|
60 |
clippy::option_if_let_else,
|
61 |
clippy::redundant_pub_crate,
|
59 |
clippy::mod_module_files,
|
60 |
clippy::option_if_let_else,
|
61 |
clippy::redundant_pub_crate,
|
59 |
clippy::mod_module_files,
|
60 |
clippy::option_if_let_else,
|
61 |
clippy::redundant_pub_crate,
|
59 |
clippy::mod_module_files,
|
60 |
clippy::option_if_let_else,
|
61 |
clippy::redundant_pub_crate,
|
59 |
clippy::mod_module_files,
|
60 |
clippy::option_if_let_else,
|
61 |
clippy::redundant_pub_crate,
|
59 |
clippy::mod_module_files,
|
60 |
clippy::option_if_let_else,
|
61 |
clippy::redundant_pub_crate,
|
59 |
clippy::mod_module_files,
|
60 |
clippy::option_if_let_else,
|
61 |
clippy::redundant_pub_crate,
|
59 |
clippy::mod_module_files,
|
60 |
clippy::option_if_let_else,
|
61 |
clippy::redundant_pub_crate,
|
59 |
clippy::mod_module_files,
|
60 |
clippy::option_if_let_else,
|
61 |
clippy::redundant_pub_crate,
|
59 |
clippy::mod_module_files,
|
60 |
clippy::option_if_let_else,
|
61 |
clippy::redundant_pub_crate,
|
48 |
clippy::unimplemented,
|
49 |
clippy::option_if_let_else,
|
50 |
clippy::branches_sharing_code,
|
48 |
clippy::unimplemented,
|
49 |
clippy::option_if_let_else,
|
50 |
clippy::branches_sharing_code,
|
31 |
clippy::must_use_candidate,
|
32 |
clippy::option_if_let_else,
|
33 |
clippy::redundant_else,
|
9 |
#![allow(
|
10 |
clippy::option_if_let_else,
|
11 |
clippy::module_name_repetitions,
|
15 |
clippy::missing_panics_doc, // TODO clippy::missing_panics_doc
|
16 |
clippy::option_if_let_else,
|
17 |
clippy::module_name_repetitions,
|
14 |
clippy::missing_panics_doc, // TODO clippy::missing_panics_doc
|
15 |
clippy::option_if_let_else,
|
16 |
clippy::module_name_repetitions,
|
15 |
clippy::missing_panics_doc, // TODO clippy::missing_panics_doc
|
16 |
clippy::option_if_let_else,
|
17 |
clippy::module_name_repetitions,
|
13 |
clippy::missing_errors_doc, // TODO clippy::missing_errors_doc
|
14 |
clippy::option_if_let_else,
|
15 |
clippy::module_name_repetitions,
|
47 |
clippy::multiple_crate_versions,
|
48 |
clippy::option_if_let_else,
|
49 |
clippy::shadow_unrelated,
|
47 |
clippy::multiple_crate_versions,
|
48 |
clippy::option_if_let_else,
|
49 |
clippy::semicolon_if_nothing_returned,
|
14 |
clippy::missing_errors_doc, // TODO clippy::missing_errors_doc
|
15 |
clippy::option_if_let_else,
|
16 |
clippy::module_name_repetitions,
|
9 |
#![allow(
|
10 |
clippy::option_if_let_else,
|
11 |
clippy::module_name_repetitions,
|
9 |
#![allow(
|
10 |
clippy::option_if_let_else,
|
11 |
clippy::module_name_repetitions,
|
161 |
#![allow(clippy::missing_const_for_fn)]
|
162 |
#![allow(clippy::option_if_let_else)] // Semantically backwards when used with non-zero error codes
|
163 |
#![allow(clippy::wildcard_imports)] // I don't generally like them either but can be used well
|
2 |
#![allow(clippy::use_self)]
|
3 |
#![allow(clippy::option_if_let_else)]
|
38 |
fn cache_get(&mut self, key: &K) -> Option<&V> {
|
39 |
#![allow(clippy::option_if_let_else)]
|
40 |
if let Some(v) = self.store.get(key) {
|
2 |
//! from the [article](https://habr.com/ru/post/433330/)
|
3 |
#![allow(clippy::option_if_let_else)]
|
35 |
// I’m not a big fan of this style, and it sometimes generates larger code.
|
36 |
#![allow(clippy::option_if_let_else)]
|
37 |
// I’m not a big fan of this style, and it sometimes generates larger code.
|
38 |
#![allow(clippy::option_if_let_else)]
|
39 |
// Nope, tabs thanks.
|
44 |
// I’m not a big fan of this style, and it sometimes generates larger code.
|
45 |
#![allow(clippy::option_if_let_else)]
|
46 |
// Nope, tabs thanks.
|
151 |
// I’m not a big fan of this style, and it sometimes generates larger code.
|
152 |
#![allow(clippy::option_if_let_else)]
|
153 |
// Nope, tabs thanks.
|
10 |
#![allow(
|
11 |
clippy::option_if_let_else,
|
12 |
clippy::module_name_repetitions,
|
14 |
clippy::missing_errors_doc, // TODO clippy::missing_errors_doc
|
15 |
clippy::option_if_let_else,
|
16 |
clippy::module_name_repetitions,
|
246 |
clippy::type_complexity,
|
247 |
clippy::option_if_let_else
|
248 |
)]
|
47 |
clippy::missing_errors_doc, // TODO
|
48 |
clippy::option_if_let_else,
|
49 |
)]
|
17 |
clippy::missing_errors_doc, // TODO
|
18 |
clippy::option_if_let_else,
|
19 |
)]
|
15 |
clippy::missing_errors_doc, // TODO clippy::missing_errors_doc
|
16 |
clippy::option_if_let_else,
|
17 |
)]
|
15 |
clippy::missing_errors_doc, // TODO clippy::missing_errors_doc
|
16 |
clippy::option_if_let_else,
|
17 |
)]
|
15 |
clippy::missing_errors_doc, // TODO
|
16 |
clippy::option_if_let_else,
|
17 |
)]
|
15 |
clippy::missing_errors_doc, // TODO
|
16 |
clippy::option_if_let_else,
|
17 |
)]
|
13 |
#![cfg_attr(doc, deny(rustdoc::all))]
|
14 |
#![allow(clippy::option_if_let_else)]
|
16 |
clippy::missing_panics_doc, // TODO
|
17 |
clippy::option_if_let_else,
|
18 |
)]
|
13 |
clippy::missing_errors_doc, // TODO clippy::missing_errors_doc
|
14 |
clippy::option_if_let_else,
|
15 |
clippy::used_underscore_binding, // false positive with tracing
|
10 |
#![allow(
|
11 |
clippy::option_if_let_else,
|
12 |
clippy::module_name_repetitions,
|
3 |
#![warn(clippy::cargo)]
|
4 |
#![allow(clippy::option_if_let_else)]
|
5 |
#![allow(unknown_lints)]
|
80 |
#![allow(
|
81 |
clippy::option_if_let_else, // I don't like it. The match expression is more readable.
|
82 |
)]
|
277 |
fn next(&mut self) -> Option<Self::Item> {
|
278 |
#![allow(clippy::option_if_let_else)] // false positive, both branches move a value
|
74 |
fn next_window(&mut self) -> Option<Window<<Self::CurveKind as CurveType>::WindowKind>> {
|
75 |
#![allow(clippy::option_if_let_else)] // false positive, can't use map_or as the same value is moved in both branches
|
11 |
)]
|
12 |
#![allow(clippy::option_if_let_else, clippy::module_name_repetitions)]
|
27 |
clippy::must_use_candidate,
|
28 |
clippy::option_if_let_else
|
29 |
)]
|
78 |
clippy::needless_doctest_main,
|
79 |
clippy::option_if_let_else,
|
80 |
clippy::ptr_as_ptr,
|
120 |
module_name_repetitions,
|
121 |
option_if_let_else,
|
122 |
single_match_else,
|
52 |
clippy::must_use_candidate,
|
53 |
clippy::option_if_let_else,
|
54 |
clippy::similar_names,
|
44 |
clippy::must_use_candidate,
|
45 |
clippy::option_if_let_else,
|
46 |
clippy::similar_names,
|
136 |
clippy::needless_pass_by_value,
|
137 |
clippy::option_if_let_else,
|
138 |
clippy::redundant_else,
|
83 |
clippy::needless_pass_by_value,
|
84 |
clippy::option_if_let_else,
|
85 |
clippy::redundant_else,
|
10 |
clippy::needless_pass_by_value,
|
11 |
clippy::option_if_let_else,
|
12 |
clippy::uninlined_format_args,
|
20 |
// clippy::missing_panics_doc, // not on stable yet
|
21 |
clippy::option_if_let_else,
|
22 |
)]
|
9 |
#![allow(
|
10 |
clippy::option_if_let_else,
|
11 |
clippy::module_name_repetitions,
|
68 |
// not going to fix any clippy lints for v0.6.x, they're fixed for v0.7
|
69 |
#![allow(clippy::missing_const_for_fn, clippy::option_if_let_else)]
|
70 |
#![doc(
|
1 |
#![allow(clippy::iter_cloned_collect, clippy::option_if_let_else)]
|
1 |
#![allow(clippy::iter_cloned_collect, clippy::option_if_let_else)]
|
8 |
clippy::needless_pass_by_value,
|
9 |
clippy::option_if_let_else,
|
10 |
clippy::range_plus_one,
|
1 |
#![deny(clippy::all, clippy::pedantic)]
|
2 |
#![allow(clippy::iter_cloned_collect, clippy::option_if_let_else)]
|
7 |
clippy::needless_pass_by_value,
|
8 |
clippy::option_if_let_else,
|
9 |
clippy::range_plus_one,
|
8 |
clippy::needless_pass_by_value,
|
9 |
clippy::option_if_let_else,
|
10 |
clippy::range_plus_one,
|
7 |
clippy::needless_pass_by_value,
|
8 |
clippy::option_if_let_else,
|
9 |
clippy::range_plus_one,
|
1 |
#![allow(clippy::iter_cloned_collect, clippy::option_if_let_else)]
|
129 |
clippy::redundant_pub_crate, // suggests bad style
|
130 |
clippy::option_if_let_else, // suggests terrible code
|
131 |
clippy::unused_peekable, // temporary due to bug: remove when Rust 1.66 is released
|
33 |
clippy::redundant_pub_crate, // suggests bad style
|
34 |
clippy::option_if_let_else, // suggests terrible code
|
35 |
)]
|
3 |
#![warn(clippy::undocumented_unsafe_blocks, clippy::pedantic, clippy::nursery)]
|
4 |
#![allow(clippy::doc_markdown, clippy::option_if_let_else)]
|
5 |
#![allow(incomplete_features)]
|
12 |
clippy::missing_errors_doc, // TODO clippy::missing_errors_doc
|
13 |
clippy::option_if_let_else,
|
14 |
)]
|
12 |
clippy::missing_errors_doc, // TODO clippy::missing_errors_doc
|
13 |
clippy::option_if_let_else,
|
14 |
clippy::module_name_repetitions,
|
12 |
clippy::missing_errors_doc, // TODO clippy::missing_errors_doc
|
13 |
clippy::option_if_let_else,
|
14 |
)]
|
12 |
clippy::missing_errors_doc, // TODO clippy::missing_errors_doc
|
13 |
clippy::option_if_let_else,
|
14 |
)]
|
12 |
clippy::missing_errors_doc, // TODO clippy::missing_errors_doc
|
13 |
clippy::option_if_let_else,
|
14 |
)]
|
12 |
clippy::missing_errors_doc, // TODO clippy::missing_errors_doc
|
13 |
clippy::option_if_let_else,
|
14 |
)]
|
12 |
clippy::missing_errors_doc, // TODO clippy::missing_errors_doc
|
13 |
clippy::option_if_let_else,
|
14 |
)]
|
4 |
clippy::module_name_repetitions,
|
5 |
clippy::option_if_let_else,
|
6 |
clippy::missing_const_for_fn,
|
3 |
clippy::module_name_repetitions,
|
4 |
clippy::option_if_let_else,
|
5 |
clippy::missing_const_for_fn,
|
3 |
#![allow(clippy::module_name_repetitions)]
|
4 |
#![allow(clippy::option_if_let_else)]
|
10 |
)]
|
11 |
#![allow(clippy::option_if_let_else, clippy::module_name_repetitions)]
|
4 |
#![allow(clippy::cast_sign_loss, clippy::cast_possible_truncation)]
|
5 |
#![allow(clippy::option_if_let_else)]
|