119 |
#[allow(clippy::or_fun_call)]
|
120 |
#[instrument(skip_all, err)]
|
250 |
/// Perform a naive n^2 multiplication of `self` by `other`.
|
251 |
#[allow(clippy::or_fun_call)]
|
252 |
pub fn mul(&self, other: &Self) -> Self {
|
82 |
// we can't make it a closure because it borrows (and it can't borrow mut and non-mut below)
|
83 |
#[allow(clippy::or_fun_call)]
|
84 |
let fields = ipc_fields.unwrap_or(self.ipc_fields.as_ref().unwrap());
|
274 |
#[allow(clippy::or_fun_call)]
|
275 |
fn backtrace(&self) -> Option<&Backtrace> {
|
62 |
fn server_info(config: State<AWConfig>, state: State<ServerState>) -> Json<Info> {
|
63 |
#[allow(clippy::or_fun_call)]
|
64 |
let hostname = gethostname().into_string().unwrap_or("unknown".to_string());
|
31 |
pub fn endidness(&self) -> Endidness {
|
32 |
#[allow(clippy::or_fun_call)]
|
33 |
self.endidness_override.unwrap_or(self.reader.endidness())
|
12 |
// fails on compilation.
|
13 |
#[allow(clippy::or_fun_call)]
|
14 |
pub fn run(args: &Args, user_config: &UserConfig) -> Result<PathBuf> {
|
946 |
#[allow(clippy::or_fun_call)] // This is intentional.
|
947 |
#[test]
|
80 |
#[allow(clippy::or_fun_call)] // `Path::new` is a zero cost conversion
|
81 |
let mut tempf = NamedTempFile::new_in(self.path.parent().unwrap_or(Path::new(".")))?;
|
37 |
impl Kind {
|
38 |
#[allow(clippy::or_fun_call)]
|
39 |
pub fn derive(input: DeriveInput) -> TokenStream {
|
19 |
let mut indices = indices.skip_while(|(_, co)| *co != high);
|
20 |
#[allow(clippy::or_fun_call)]
|
21 |
let high_index = indices.next().map(|(bo, _)| bo).unwrap_or(string.len());
|
65 |
/// parse BlockHeader array from JSON (Node API)
|
66 |
#[allow(clippy::boxed_local, clippy::or_fun_call)]
|
67 |
pub fn from_json(json_vals: Box<[JsValue]>) -> Result<BlockHeaders, JsValue> {
|
15 |
/// parse ErgoBox array from json
|
16 |
#[allow(clippy::boxed_local, clippy::or_fun_call)]
|
17 |
pub fn from_boxes_json(json_vals: Box<[JsValue]>) -> Result<ErgoBoxes, JsValue> {
|
123 |
impl Obj {
|
124 |
#[allow(clippy::too_many_arguments, clippy::or_fun_call)]
|
125 |
pub fn new_empty(
|
165 |
#[allow(clippy::too_many_arguments, clippy::or_fun_call)]
|
166 |
pub fn from_triangle_mesh_vec(
|
378 |
let mut e = line.0.split_whitespace();
|
379 |
#[allow(clippy::or_fun_call)]
|
380 |
let ty: &str = e.next().ok_or(format!("error on line {} of {}", line_n, path).as_str()).unwrap();
|
113 |
/// needed.
|
114 |
#[allow(clippy::or_fun_call)]
|
115 |
pub fn build(mut self) -> Result<(), Error> {
|
121 |
impl BitOrAssign for Cli {
|
122 |
#[allow(clippy::or_fun_call)]
|
123 |
fn bitor_assign(&mut self, rhs: Self) {
|
581 |
// https://github.com/rust-lang/rust-clippy/issues/7483
|
582 |
#[allow(clippy::or_fun_call)]
|
583 |
fn main() -> Result<(), Box<dyn Error>> {
|
327 |
/// `feedback_loop_trials` controls how long the search will take. < 0 skips the iteration.
|
328 |
#[allow(clippy::or_fun_call)]
|
329 |
pub(crate) fn find_best_palette(attr: &Attributes, target_mse: f64, target_mse_is_zero: bool, max_mse: Option<f64>, mut hist: HistogramInternal, fixed_colors: &FixedColorsSet) -> Result<(PalF, Option<f64>), Error> {
|
64 |
#[inline]
|
65 |
#[allow(clippy::or_fun_call)] // zero() is fine
|
66 |
pub(crate) fn assign_nearest<M, N, L>(mat: &M, med: &[usize], data: &mut [usize]) -> L
|
282 |
let mut parts = entry.splitn(2, ':');
|
283 |
#[allow(clippy::or_fun_call)]
|
284 |
let k = parts.next().ok_or(anyhow::format_err!(
|
84 |
#[must_use]
|
85 |
#[allow(clippy::or_fun_call)]
|
86 |
pub fn new(input: &GramatronInput) -> Self {
|
45 |
// outlives its Vec, so we have to use unwrap_or here.
|
46 |
#[allow(clippy::or_fun_call)]
|
47 |
pub fn new_request_uri(uri: CoapUri) -> Result<CoapRequestUri, OptionValueError> {
|
111 |
/// values for the rest of the fields)
|
112 |
#[allow(clippy::or_fun_call)]
|
113 |
pub fn set_cw20_total_supply(&mut self, cw20_address: Addr, total_supply: Uint128) {
|
123 |
#[allow(clippy::or_fun_call)]
|
124 |
pub fn set_cw20_symbol(&mut self, cw20_address: Addr, symbol: String) {
|
40 |
// Could use Entry::insert once it's stabilized.
|
41 |
#[allow(clippy::or_fun_call)]
|
42 |
entry
|
166 |
/// types.
|
167 |
#[allow(clippy::or_fun_call)]
|
168 |
pub fn update(
|
415 |
/// Also, bumps the reference counts on dependent expressions.
|
416 |
#[allow(clippy::or_fun_call)]
|
417 |
fn process_expression(
|
717 |
/// require uniformity, but the current flow is non-uniform.
|
718 |
#[allow(clippy::or_fun_call)]
|
719 |
fn process_block(
|
1201 |
// Figure out if we have a consumer name
|
1202 |
#[allow(clippy::or_fun_call)]
|
1203 |
let maybe_durable_name = maybe_options
|
228 |
#[allow(clippy::or_fun_call)]
|
229 |
fn stack_trace(&self) -> Option<&Backtrace> {
|
78 |
// Functions used have side affects so should be called every time (not using `or_else`).
|
79 |
#[allow(clippy::or_fun_call)]
|
80 |
pub fn winner(
|
285 |
{
|
286 |
#[allow(clippy::or_fun_call, clippy::clone_on_copy)]
|
287 |
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
216 |
#[allow(clippy::or_fun_call)]
|
217 |
let default_value = ConstantSchematicAnalysis()
|
251 |
#[allow(clippy::or_fun_call)]
|
252 |
let default_value = ConstantSchematicAnalysis()
|
96 |
fn get(client: &Client, chall: &BearerChallenge) -> Result<Token, RegistryError> {
|
97 |
#[allow(clippy::or_fun_call)]
|
98 |
let realm = chall
|
149 |
#[allow(clippy::or_fun_call)]
|
150 |
let challenges = WwwAuthenticate::parse_header(&raw)
|
168 |
info!("Authentication required");
|
169 |
#[allow(clippy::or_fun_call)]
|
170 |
let authenticate = response
|
118 |
#[allow(clippy::or_fun_call)]
|
119 |
let media_type_split = media_type
|
12 |
pub fn content_type_has_essence(content_type: &HeaderValue, expected_essence: &str) -> bool {
|
13 |
#[allow(clippy::or_fun_call)]
|
14 |
content_type
|
258 |
/// generate chunks that group together those objects.
|
259 |
#[allow(clippy::or_fun_call)]
|
260 |
pub fn process_mapping(
|
75 |
// todo: remove `#[allow(clippy::or_fun_call)]` lint when MSRV is bumped.
|
76 |
#[allow(clippy::or_fun_call)]
|
77 |
let input = cli
|
56 |
impl<'a, 'b> Tiler<'a, 'b> {
|
57 |
#[allow(clippy::or_fun_call)]
|
58 |
pub(crate) fn new(
|
97 |
#[allow(clippy::or_fun_call)]
|
98 |
fn new_alias_git(
|
144 |
#[allow(clippy::or_fun_call)]
|
145 |
acc.entry(key)
|
68 |
/// Serialise a FileEntry to a String
|
69 |
#[allow(clippy::or_fun_call)]
|
70 |
impl From<&FileEntry> for String {
|
610 |
// The function call is cheap and will probably be inlined
|
611 |
#[allow(clippy::or_fun_call)]
|
612 |
let ch =
|
77 |
#[allow(clippy::or_fun_call)]
|
78 |
unsafe fn parse_field_value(ctx: *mut q::JSContext, field: &str, value: &JSValueRef) -> String {
|
171 |
#[allow(clippy::or_fun_call)]
|
172 |
unsafe fn parse_line(ctx: *mut q::JSContext, args: Vec<JSValueRef>) -> String {
|
36 |
if let Some(entry) = self.cpu_core_info.last() {
|
37 |
#[allow(clippy::or_fun_call)]
|
38 |
let history = self.cpu_usage_history.entry(entry.0.clone()).or_insert(vec![0.0; self.max_history_len]);
|
80 |
#[allow(clippy::or_fun_call)] // `Path::new` is a zero cost conversion
|
81 |
let mut tempf = NamedTempFile::new_in(self.path.parent().unwrap_or(Path::new(".")))?;
|
29 |
if file_info.is_final && file_info.parts.is_some() {
|
30 |
#[allow(clippy::or_fun_call)]
|
31 |
let parts = file_info
|
426 |
let idx_j = j.index;
|
427 |
#[allow(clippy::or_fun_call)]
|
428 |
let entry = self.data.entry((idx_i, idx_j)).or_insert(or_insert);
|
630 |
#[allow(clippy::or_fun_call)]
|
631 |
impl<F: Field> LinearCombination<F> {
|
267 |
#[allow(clippy::or_fun_call)]
|
268 |
let (comm, rand) = p
|
124 |
/// Create a map of bank slot id to the set of all of its descendants
|
125 |
#[allow(clippy::or_fun_call)]
|
126 |
pub fn descendants(&self) -> HashMap<u64, HashSet<u64>> {
|
256 |
{
|
257 |
#[allow(clippy::or_fun_call)]
|
258 |
self.pressed
|
281 |
{
|
282 |
#[allow(clippy::or_fun_call)]
|
283 |
self.pressed
|
37 |
pub fn real_remote_user(&self) -> String {
|
38 |
#[allow(clippy::or_fun_call)]
|
39 |
self.remote_user.clone().unwrap_or("root".to_string())
|
117 |
impl<'a> Enum<'a> {
|
118 |
#[allow(clippy::or_fun_call)]
|
119 |
fn impl_variant(&self, variant: &Variant, tokens: &mut TokenStream) {
|
100 |
#[allow(clippy::or_fun_call)]
|
101 |
Config {
|
109 |
/// Add a child node to a PST node.
|
110 |
#[allow(clippy::or_fun_call)]
|
111 |
fn get_or_insert_child(
|
63 |
impl OldConfigFile {
|
64 |
#[allow(clippy::or_fun_call)]
|
65 |
pub fn convert(self) -> ConfigFile {
|
282 |
let mut parts = entry.splitn(2, ':');
|
283 |
#[allow(clippy::or_fun_call)]
|
284 |
let k = parts.next().ok_or(anyhow::format_err!(
|
652 |
let mut parts = entry.splitn(2, ':');
|
653 |
#[allow(clippy::or_fun_call)]
|
654 |
let k = parts.next().ok_or(anyhow::format_err!(
|
453 |
sin6_addr: unsafe {
|
454 |
#[allow(clippy::or_fun_call)] // Really clippy... it's a const fn...
|
455 |
mem::transmute(src.unwrap_or(Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 0)))
|
55 |
#[inline]
|
56 |
#[allow(clippy::or_fun_call)]
|
57 |
fn board_size(width: Option<usize>, height: Option<usize>) -> Result<(usize, usize)> {
|
410 |
Ok(()) => {
|
411 |
#[allow(clippy::or_fun_call)]
|
412 |
let local_addr = socket
|
354 |
Ok(()) => {
|
355 |
#[allow(clippy::or_fun_call)]
|
356 |
let local_addr = socket
|
155 |
#[allow(clippy::or_fun_call)]
|
156 |
fn tempfile_for(path: &Path) -> io::Result<NamedTempFile> {
|
198 |
// https://github.com/rust-lang/rust-clippy/issues/7483
|
199 |
#[allow(clippy::or_fun_call)]
|
200 |
fn main() -> Result<(), Box<dyn Error>> {
|
9 |
#![deny(clippy::perf)] // our compile times are awful
|
10 |
#![allow(clippy::or_fun_call)] // often false positives
|
1 |
#![allow(clippy::or_fun_call)]
|
1 |
#![allow(clippy::or_fun_call)]
|
1 |
#![allow(clippy::or_fun_call)]
|
2 |
#![allow(clippy::derive_partial_eq_without_eq)]
|
13 |
#![allow(
|
14 |
clippy::or_fun_call,
|
15 |
clippy::trivially_copy_pass_by_ref,
|
391 |
clippy::new_without_default,
|
392 |
clippy::or_fun_call,
|
393 |
clippy::ptr_arg,
|
67 |
clippy::option_if_let_else,
|
68 |
clippy::or_fun_call,
|
69 |
clippy::redundant_else,
|
28 |
clippy::option_if_let_else,
|
29 |
clippy::or_fun_call,
|
30 |
clippy::redundant_else,
|
18 |
clippy::option_if_let_else,
|
19 |
clippy::or_fun_call,
|
20 |
clippy::redundant_else,
|
17 |
clippy::option_if_let_else,
|
18 |
clippy::or_fun_call,
|
19 |
clippy::redundant_else,
|
1 |
#![allow(clippy::or_fun_call)]
|
378 |
clippy::transmute_int_to_char,
|
379 |
clippy::or_fun_call,
|
380 |
clippy::ptr_offset_with_cast,
|
1 |
#![allow(clippy::expect_fun_call, clippy::or_fun_call)]
|
48 |
{
|
49 |
#![allow(clippy::or_fun_call)]
|
50 |
let mut overflow = value.is_none();
|
78 |
{
|
79 |
#![allow(clippy::or_fun_call)]
|
80 |
let mut overflow = value.is_none();
|
157 |
{
|
158 |
#![allow(clippy::or_fun_call)]
|
159 |
if reader.buf_len() < offset + 8 {
|
196 |
{
|
197 |
#![allow(clippy::or_fun_call)]
|
198 |
if reader.buf_len() < offset + 8 {
|
1 |
//! Parse impl blocks.
|
2 |
#![allow(clippy::or_fun_call)]
|
8 |
#![allow(clippy::collapsible_else_if)]
|
9 |
#![allow(clippy::or_fun_call)]
|
10 |
#![allow(clippy::never_loop)]
|
1 |
#![allow(clippy::or_fun_call)]
|
2 |
#![allow(clippy::useless_conversion)]
|
129 |
)]
|
130 |
#![allow(clippy::too_many_arguments, clippy::borrowed_box, clippy::or_fun_call)]
|
131 |
#![doc(
|
11 |
#![allow(clippy::expect_fun_call)]
|
12 |
#![allow(clippy::or_fun_call)]
|
1 |
#![allow(clippy::or_fun_call)]
|
1 |
#![allow(clippy::or_fun_call)]
|
2 |
#![warn(missing_docs, missing_debug_implementations, unreachable_pub)]
|
5 |
#![allow(clippy::or_fun_call)]
|
5 |
#![allow(clippy::or_fun_call)]
|
3 |
#![allow(clippy::or_fun_call)]
|
10 |
#![allow(clippy::expect_fun_call)]
|
11 |
#![allow(clippy::or_fun_call)]
|
7 |
#![allow(clippy::or_fun_call)]
|
8 |
#![allow(clippy::unnecessary_operation)] // trips on #[throws(Explode)]
|
11 |
#![allow(clippy::or_fun_call)]
|
12 |
#![allow(clippy::unnecessary_operation)] // trips on #[throws(Explode)]
|
5 |
#![allow(clippy::or_fun_call)]
|
11 |
#![allow(clippy::or_fun_call)]
|
12 |
#![allow(clippy::unnecessary_operation)] // trips on #[throws(Explode)]
|
1 |
#![allow(clippy::new_ret_no_self)]
|
2 |
#![allow(clippy::or_fun_call)]
|
3 |
use std::char;
|
1 |
#![allow(clippy::new_ret_no_self)]
|
2 |
#![allow(clippy::or_fun_call)]
|
3 |
use std::char;
|
4 |
// Used often in generating redox_syscall errors
|
5 |
#![allow(clippy::or_fun_call)]
|
16 |
#![allow(clippy::or_fun_call)]
|
1 |
#![allow(dead_code)]
|
2 |
#![allow(clippy::single_component_path_imports, clippy::or_fun_call, clippy::single_match)]
|
9 |
clippy::type_complexity,
|
10 |
clippy::or_fun_call,
|
11 |
clippy::nonminimal_bool,
|
1 |
#![allow(clippy::or_fun_call)]
|
41 |
#![allow(clippy::or_fun_call)]
|
42 |
#![allow(clippy::type_complexity)]
|
1 |
#![allow(clippy::or_fun_call)]
|
2 |
#![allow(clippy::useless_conversion)]
|
2 |
#![allow(
|
3 |
clippy::or_fun_call,
|
4 |
clippy::manual_non_exhaustive,
|
51 |
clippy::module_inception,
|
52 |
clippy::or_fun_call,
|
53 |
clippy::map_entry,
|
1 |
#![cfg_attr(docsrs, feature(doc_cfg))]
|
2 |
#![allow(clippy::or_fun_call)]
|
3 |
#![allow(clippy::manual_map)]
|
1 |
#![allow(clippy::or_fun_call)]
|
1 |
#![allow(clippy::new_without_default)]
|
2 |
#![allow(clippy::or_fun_call)]
|
26 |
clippy::new_without_default,
|
27 |
clippy::or_fun_call,
|
28 |
clippy::ptr_arg,
|
23 |
//! the `"jsonrpc"` member is omitted from request and response objects.
|
24 |
#![allow(clippy::boxed_local, clippy::or_fun_call)]
|