68 |
impl GetterDerive {
|
69 |
#[allow(clippy::blocks_in_if_conditions)]
|
70 |
fn try_from(attr: &mut ParametrizedAttr, global: bool) -> Result<GetterDerive> {
|
313 |
#[allow(
|
314 |
clippy::blocks_in_if_conditions,
|
315 |
clippy::if_same_then_else,
|
278 |
// boolean or integer
|
279 |
#[allow(clippy::blocks_in_if_conditions)]
|
280 |
if iter.peek_is_text_eq_ignore_case("true")
|
86 |
loop {
|
87 |
#[allow(clippy::blocks_in_if_conditions)]
|
88 |
if std::panic::catch_unwind(|| {
|
113 |
loop {
|
114 |
#[allow(clippy::blocks_in_if_conditions)]
|
115 |
if std::panic::catch_unwind(|| {
|
268 |
#[allow(clippy::blocks_in_if_conditions, clippy::iter_nth_zero)]
|
269 |
pub fn get_chrom_fileline_positions(
|
122 |
let mut acc = 0;
|
123 |
#[allow(clippy::blocks_in_if_conditions)]
|
124 |
while {
|
133 |
let mut acc = String::new();
|
134 |
#[allow(clippy::blocks_in_if_conditions)]
|
135 |
while {
|
99 |
Cmd::Check { .. } => {
|
100 |
#[allow(clippy::blocks_in_if_conditions)]
|
101 |
if is_closed(&issue).await.unwrap_or_else(|e| {
|
69 |
/// Copies entire host target, so stuff like tests work.
|
70 |
#[allow(clippy::blocks_in_if_conditions)]
|
71 |
pub fn copy_host_tools(local_sysroot: &Path) -> Result<()> {
|
596 |
/// if the linker target changed
|
597 |
#[allow(clippy::blocks_in_if_conditions)]
|
598 |
pub fn prepare_zig_linker(target: &str) -> Result<ZigWrapper> {
|
60 |
loop {
|
61 |
#[allow(clippy::blocks_in_if_conditions)]
|
62 |
if !stream.attempt(
|
186 |
// marking it at the spot.
|
187 |
#[allow(clippy::blocks_in_if_conditions)]
|
188 |
fn recover<D: Debugger, P: Parser<I, O, Error = E>>(
|
290 |
#[allow(clippy::blocks_in_if_conditions)]
|
291 |
fn wait_discovery(node: &Node, assert: impl Fn(usize) -> bool) {
|
735 |
#[allow(clippy::blocks_in_if_conditions)]
|
736 |
if matches!(parse_state, ParseState::Opt(opt) | ParseState::Pos(opt) if
|
857 |
#[allow(clippy::blocks_in_if_conditions)]
|
858 |
if matches!(parse_state, ParseState::Opt(opt) | ParseState::Pos(opt)
|
340 |
#[allow(clippy::block_in_if_condition_stmt)]
|
341 |
// Does all the initializing and prepares the parser
|
739 |
#[allow(clippy::blocks_in_if_conditions)]
|
740 |
if matches!(parse_state, ParseState::Opt(opt) | ParseState::Pos(opt) if
|
863 |
#[allow(clippy::blocks_in_if_conditions)]
|
864 |
if matches!(parse_state, ParseState::Opt(opt) | ParseState::Pos(opt)
|
466 |
#[allow(clippy::blocks_in_if_conditions)]
|
467 |
pub fn preprocess_code(
|
180 |
pos.goto_top(*ebb);
|
181 |
#[cfg_attr(feature = "cargo-clippy", allow(block_in_if_condition_stmt))]
|
182 |
while let Some(inst) = pos.next_inst() {
|
66 |
let mut children: Vec<ftd::Node> = self.children.to_vec();
|
67 |
#[allow(clippy::blocks_in_if_conditions)]
|
68 |
if let Some(ext_children) = external_children {
|
602 |
#[allow(clippy::blocks_in_if_conditions)]
|
603 |
if *external_open_id
|
69 |
let mut children: Vec<ftd_rt::Node> = self.children.to_vec();
|
70 |
#[allow(clippy::blocks_in_if_conditions)]
|
71 |
if let Some(ext_children) = external_children {
|
182 |
#[allow(clippy::blocks_in_if_conditions)]
|
183 |
if *external_open_id
|
285 |
// False positive clippy lints
|
286 |
#[allow(clippy::blocks_in_if_conditions)]
|
287 |
#[allow(clippy::nonminimal_bool)]
|
353 |
// False positive clippy lints
|
354 |
#[allow(clippy::blocks_in_if_conditions)]
|
355 |
#[allow(clippy::nonminimal_bool)]
|
692 |
let path = entry.path();
|
693 |
#[allow(clippy::blocks_in_if_conditions)]
|
694 |
if filter.as_mut().map_or(true, |f| {
|
536 |
// at any time from any thread.
|
537 |
#[allow(clippy::blocks_in_if_conditions)]
|
538 |
fn property(&self, _id: usize, pspec: &glib::ParamSpec) -> glib::Value {
|
3235 |
#[allow(clippy::blocks_in_if_conditions)]
|
3236 |
fn schedule_source_restart_timeout(
|
3399 |
#[allow(clippy::blocks_in_if_conditions)]
|
3400 |
fn have_fallback_activated(&self, state: &State) -> bool {
|
635 |
#[allow(clippy::blocks_in_if_conditions)]
|
636 |
let output_clockid = if is_active {
|
593 |
#[allow(clippy::blocks_in_if_conditions)]
|
594 |
fn handle_secondary_stream<T: HandleData>(
|
2981 |
// cargo fmt creates the and_then block, but clippy doesn't like it
|
2982 |
#[allow(clippy::blocks_in_if_conditions)]
|
2983 |
if get_token_if_permitted(
|
296 |
#[allow(clippy::block_in_if_condition_stmt)]
|
297 |
fn remove_interface(&mut self, id: &String) -> Result<(), HolochainError> {
|
328 |
#[allow(clippy::block_in_if_condition_stmt)]
|
329 |
fn add_instance_to_interface(
|
381 |
#[allow(clippy::block_in_if_condition_stmt)]
|
382 |
fn remove_instance_from_interface(
|
180 |
fn get_upgrade_type(headers: &HeaderMap) -> Option<String> {
|
181 |
#[allow(clippy::blocks_in_if_conditions)]
|
182 |
if headers
|
132 |
#[allow(clippy::collapsible_if)]
|
133 |
#[allow(clippy::blocks_in_if_conditions)]
|
134 |
impl<T: Seek + Read + Write + Send> PhysicalMemory for FileIoMemory<T> {
|
2468 |
#[allow(clippy::blocks_in_if_conditions)]
|
2469 |
pub(crate) fn _check_help_and_version(&mut self) {
|
647 |
// Check that the referenced codebook exists, and has enough entries
|
648 |
#[allow(clippy::blocks_in_if_conditions)]
|
649 |
if codebook_configurations
|
4210 |
#[allow(clippy::blocks_in_if_conditions)]
|
4211 |
pub(crate) fn _check_help_and_version(&mut self) {
|
913 |
#[allow(clippy::blocks_in_if_conditions)]
|
914 |
if self.cmd.is_allow_negative_numbers_set() && arg.parse::<f64>().is_ok() {
|
282 |
let mut r;
|
283 |
#[allow(clippy::blocks_in_if_conditions)]
|
284 |
while {
|
297 |
let mut r;
|
298 |
#[allow(clippy::blocks_in_if_conditions)]
|
299 |
while {
|
28 |
// the blocks are added by cargo fmt
|
29 |
#[allow(clippy::blocks_in_if_conditions)]
|
30 |
if has_expr(&expr, |e| {
|
398 |
#[allow(clippy::cognitive_complexity)]
|
399 |
#[allow(clippy::blocks_in_if_conditions)]
|
400 |
#[test]
|
32 |
pub(super) const fn new(chars: &'static [u8]) -> Self {
|
33 |
#[allow(clippy::blocks_in_if_conditions)]
|
34 |
if {
|
689 |
let path = entry.path();
|
690 |
#[allow(clippy::blocks_in_if_conditions)]
|
691 |
if filter.as_mut().map_or(true, |f| {
|
136 |
/// operators are also not added. This reflects C++'s method inheritance rules.
|
137 |
#[allow(clippy::block_in_if_condition_stmt)]
|
138 |
pub fn add_inherited_methods(&mut self) -> Result<()> {
|
196 |
/// as its argument. Returns output value of `f` or an error.
|
197 |
#[allow(clippy::block_in_if_condition_stmt)]
|
198 |
fn run_clang<R, F: FnMut(Entity) -> Result<R>>(
|
210 |
/// excluding results that were already processed in dependencies.
|
211 |
#[allow(clippy::block_in_if_condition_stmt)]
|
212 |
fn find_template_instantiations(data: &mut ProcessorData) -> Result<()> {
|
336 |
#[allow(clippy::extend_from_slice)]
|
337 |
#[allow(clippy::block_in_if_condition_stmt)]
|
338 |
pub fn run(self) -> Result<RustGeneratorOutput> {
|
853 |
#[allow(clippy::blocks_in_if_conditions)]
|
854 |
while {
|
71 |
impl CstRule for GetterReturn {
|
72 |
#[allow(clippy::blocks_in_if_conditions)]
|
73 |
fn check_node(&self, node: &SyntaxNode, ctx: &mut RuleCtx) -> Option<()> {
|
417 |
let session_id = self.session_id.as_ref();
|
418 |
#[allow(clippy::blocks_in_if_conditions)] // length checked
|
419 |
if SIGNATURE_BUFFER.with(|buf| {
|
107 |
/// easier to ensure it matches.
|
108 |
#[allow(clippy::blocks_in_if_conditions)]
|
109 |
fn rfc_decoder(largest_pn: u64, truncated_pn: u64, pn_nbits: usize) -> u64 {
|
837 |
) -> Result<(), EbpfError<BpfError>> {
|
838 |
#[allow(clippy::blocks_in_if_conditions)]
|
839 |
if native_loader::check_id(program_id)
|
7728 |
for precompile in get_precompiles() {
|
7729 |
#[allow(clippy::blocks_in_if_conditions)]
|
7730 |
if precompile.feature.map_or(false, |ref feature_id| {
|
199 |
if let Ok(mut collector_ptr) = lock_result {
|
200 |
#[allow(clippy::blocks_in_if_conditions)]
|
201 |
let _guard = ExitGuard::new(&ANCHOR, |a| {
|
301 |
/// interpreted under a policy and trust model.
|
302 |
#[allow(clippy::blocks_in_if_conditions)]
|
303 |
pub async fn search<U: Into<UserID>>(&mut self, userid: U)
|
589 |
/// selfsig must be the newest live self signature at time `t`.
|
590 |
#[allow(clippy::blocks_in_if_conditions)]
|
591 |
pub(crate) fn _revocation_status<'a, T>(&'a self, policy: &dyn Policy, t: T,
|
2666 |
/// Verifies the signatures.
|
2667 |
#[allow(clippy::blocks_in_if_conditions)]
|
2668 |
fn verify_signatures(&mut self) -> Result<()> {
|
1883 |
impl OnePassSig3 {
|
1884 |
#[allow(clippy::blocks_in_if_conditions)]
|
1885 |
fn parse<'a, T: 'a + BufferedReader<Cookie>>(mut php: PacketHeaderParser<T>)
|
46 |
pub(crate) const fn new(chars: &'static [u8]) -> Self {
|
47 |
#[allow(clippy::blocks_in_if_conditions)]
|
48 |
if {
|
386 |
/// [`World`]: crate::World
|
387 |
#[allow(clippy::blocks_in_if_conditions)]
|
388 |
pub fn add_to_world(self, world: &World) -> Result<WorkloadInfo, error::AddWorkload> {
|
582 |
// of the next query
|
583 |
#[allow(clippy::blocks_in_if_conditions)]
|
584 |
// this lint is pointless here, just some optimizations
|
1675 |
) -> Option<Samples> {
|
1676 |
#[allow(clippy::blocks_in_if_conditions)]
|
1677 |
if task_statement
|
870 |
) -> Result<(), EbpfError<BpfError>> {
|
871 |
#[allow(clippy::blocks_in_if_conditions)]
|
872 |
if native_loader::check_id(program_id)
|
7499 |
for precompile in get_precompiles() {
|
7500 |
#[allow(clippy::blocks_in_if_conditions)]
|
7501 |
if precompile.feature.map_or(false, |ref feature_id| {
|
409 |
//
|
410 |
#[allow(clippy::blocks_in_if_conditions)]
|
411 |
while {
|
297 |
#[allow(clippy::blocks_in_if_conditions)]
|
298 |
// Does all the initializing and prepares the parser
|
2060 |
// also what is wrong with you clippy ...
|
2061 |
clippy::blocks_in_if_conditions
|
2062 |
)]
|
867 |
#[cfg(feature = "dnssec")] // This tests RFC 6975, a DNSSEC-specific feature.
|
868 |
#[allow(clippy::blocks_in_if_conditions)]
|
869 |
fn test_get_filter() {
|
640 |
/// then the RRSET will be valid.
|
641 |
#[allow(clippy::blocks_in_if_conditions)]
|
642 |
async fn verify_default_rrset<H, E>(
|
882 |
/// ```
|
883 |
#[allow(clippy::blocks_in_if_conditions)]
|
884 |
#[doc(hidden)]
|
450 |
#[cfg_attr(docsrs, doc(cfg(feature = "dnssec")))]
|
451 |
#[allow(clippy::blocks_in_if_conditions)]
|
452 |
pub async fn authorize(&self, update_message: &MessageRequest) -> UpdateResult<()> {
|
132 |
// mashes them up into a Str.
|
133 |
#[allow(clippy::blocks_in_if_conditions)] // avoid warning `matches!` macro triggers
|
134 |
fn parse(parser: &mut Parser<'source>) -> ParseRes<Self> {
|
7632 |
for precompile in get_precompiles() {
|
7633 |
#[allow(clippy::blocks_in_if_conditions)]
|
7634 |
if precompile.feature.map_or(false, |ref feature_id| {
|
2 |
clippy::unneeded_field_pattern,
|
3 |
clippy::block_in_if_condition_stmt,
|
4 |
clippy::unneeded_field_pattern
|
390 |
#![allow(
|
391 |
clippy::blocks_in_if_conditions,
|
392 |
clippy::match_like_matches_macro,
|
8 |
// Rustfmt 0.9.0 is at odds with this lint:
|
9 |
block_in_if_condition_stmt,
|
10 |
// Produces only a false positive:
|
1 |
#![allow(clippy::blocks_in_if_conditions, clippy::range_plus_one)]
|
41 |
#![allow(
|
42 |
clippy::blocks_in_if_conditions,
|
43 |
clippy::bool_to_int_with_if,
|
3 |
#![allow(clippy::assertions_on_constants)]
|
4 |
#![allow(clippy::blocks_in_if_conditions)]
|
5 |
#![allow(clippy::bool_comparison)]
|
20 |
#![warn(clippy::all, clippy::as_conversions, clippy::clone_on_ref_ptr)]
|
21 |
#![allow(clippy::too_many_arguments, clippy::blocks_in_if_conditions)]
|
4 |
#![warn(clippy::all, clippy::as_conversions, clippy::clone_on_ref_ptr)]
|
5 |
#![allow(clippy::too_many_arguments, clippy::blocks_in_if_conditions)]
|
1 |
#![warn(clippy::all, clippy::as_conversions)]
|
2 |
#![allow(clippy::too_many_arguments, clippy::blocks_in_if_conditions)]
|
13 |
#![warn(clippy::all, clippy::as_conversions, clippy::clone_on_ref_ptr)]
|
14 |
#![allow(clippy::too_many_arguments, clippy::blocks_in_if_conditions)]
|
9 |
#![deny(missing_docs)]
|
10 |
#![allow(clippy::blocks_in_if_conditions)]
|
1 |
#![allow(clippy::new_ret_no_self)]
|
2 |
#![allow(clippy::blocks_in_if_conditions)]
|
3 |
//! Next-gen performance kitsune transport proxy
|
1 |
#![allow(clippy::blocks_in_if_conditions)]
|
1 |
#![allow(clippy::blocks_in_if_conditions)]
|
2 |
#![allow(clippy::result_unit_err)]
|
12 |
#![allow(
|
13 |
clippy::blocks_in_if_conditions,
|
14 |
clippy::redundant_closure_call,
|
5 |
#![allow(clippy::while_let_loop)]
|
6 |
#![allow(clippy::blocks_in_if_conditions)]
|
1 |
#![allow(clippy::blocks_in_if_conditions)]
|
1 |
#![allow(clippy::block_in_if_condition_stmt)]
|
2 |
use crate::field::{FieldDecode, FieldEncode};
|
1 |
#![allow(clippy::single_match, clippy::block_in_if_condition_stmt)]
|
2 |
use crate::field::{FieldDecode, FieldEncode, RequiredFieldDecode, RequiredFieldEncode};
|
2 |
clippy::unneeded_field_pattern,
|
3 |
clippy::block_in_if_condition_stmt,
|
4 |
clippy::unneeded_field_pattern
|
140 |
// code is acceptable
|
141 |
clippy::blocks_in_if_conditions,
|
142 |
clippy::cast_possible_truncation,
|
87 |
// code is acceptable
|
88 |
clippy::blocks_in_if_conditions,
|
89 |
clippy::cast_possible_wrap,
|
29 |
#![deny(clippy::all)]
|
30 |
#![allow(clippy::blocks_in_if_conditions)]
|
31 |
#![allow(clippy::collapsible_else_if)]
|
248 |
#![allow(
|
249 |
clippy::block_in_if_condition_stmt,
|
250 |
clippy::cognitive_complexity,
|
248 |
#![allow(
|
249 |
clippy::block_in_if_condition_stmt,
|
250 |
clippy::cognitive_complexity,
|
231 |
allow(
|
232 |
block_in_if_condition_stmt,
|
233 |
cognitive_complexity,
|
1 |
#![allow(
|
2 |
clippy::blocks_in_if_conditions,
|
3 |
clippy::cast_lossless,
|
1 |
#![allow(
|
2 |
clippy::blocks_in_if_conditions,
|
3 |
clippy::cast_lossless,
|
1 |
#![allow(
|
2 |
clippy::blocks_in_if_conditions,
|
3 |
clippy::cast_lossless,
|
1 |
#![allow(
|
2 |
clippy::blocks_in_if_conditions,
|
3 |
clippy::cast_lossless,
|
4 |
#![doc(test(attr(allow(unused_variables))))]
|
5 |
#![allow(clippy::blocks_in_if_conditions)]
|
6 |
#![allow(clippy::collapsible_else_if)]
|
6 |
#![doc(test(attr(allow(unused_variables))))]
|
7 |
#![allow(clippy::blocks_in_if_conditions)]
|
8 |
#![allow(clippy::collapsible_else_if)]
|
5 |
#![allow(clippy::redundant_closure)]
|
6 |
#![allow(clippy::block_in_if_condition_stmt)] // clippy doesn't agree with rustfmt 😂
|
7 |
#![allow(clippy::inefficient_to_string)] // this causes suggestions that result in `(*s).to_string()`
|
1 |
#![allow(clippy::blocks_in_if_conditions)]
|
2 |
use glam::Vec3;
|