106 |
#[builder(derive(Debug, Serialize, Deserialize))]
|
107 |
#[allow(clippy::option_option)] // Builder port fields: Some(None) = specified to disable
|
108 |
pub struct ProxyConfig {
|
131 |
/// entry exists and has a value.
|
132 |
#[allow(clippy::option_option)]
|
133 |
pub fn get(&self, key: &[u8]) -> Option<Option<&[u8]>> {
|
66 |
// - `Some(Some)`: there are errors.
|
67 |
#[allow(clippy::option_option)]
|
68 |
error: RefCell<Option<Option<Error>>>,
|
83 |
// https://docs.rs/structopt/0.3.11/structopt/#type-magic
|
84 |
#[allow(clippy::option_option)]
|
85 |
#[derive(Debug, Parser)]
|
294 |
#[derive(Debug)]
|
295 |
#[allow(clippy::option_option)]
|
296 |
struct InnerIter<R> {
|
29 |
impl ExtensionMap {
|
30 |
#[allow(clippy::option_option)]
|
31 |
pub(crate) fn get(&self, name: &'static str) -> Option<Option<ExtensionInformation>> {
|
28 |
cargo: Option<OsString>,
|
29 |
#[allow(clippy::option_option)]
|
30 |
cargo_home: Option<Option<PathBuf>>,
|
652 |
#[structopt(long = "diff", name = "base-version")]
|
653 |
#[allow(clippy::option_option)]
|
654 |
pub diff: Option<Option<Version>>,
|
19 |
/// * `unrelated` - the crate might not actually be a dependency
|
20 |
#[allow(clippy::option_option)]
|
21 |
pub fn create_review_proof(
|
43 |
// `metadata.package.rust_version` requires Rust 1.58
|
44 |
#[allow(clippy::option_option)]
|
45 |
pub(crate) rust_version: Option<Option<String>>,
|
346 |
#[allow(clippy::option_option)]
|
347 |
fn allow_null<T>(value: Value, f: impl FnOnce(Value) -> Option<T>) -> Option<Option<T>> {
|
70 |
/// just `--color` without an arg is equivalent to `--color=always`.
|
71 |
#[allow(clippy::option_option)]
|
72 |
#[arg(long, value_enum)]
|
85 |
#[allow(clippy::option_option)]
|
86 |
fn color_active(color: Option<Option<crate::arg_types::Color>>) -> bool {
|
119 |
#[clap(long)]
|
120 |
#[allow(clippy::option_option)]
|
121 |
/// Copy over the mods from an existing profile
|
13 |
#[allow(clippy::option_option)]
|
14 |
pub async fn create(
|
30 |
request: Request<ReqBody>,
|
31 |
#[cfg_attr(feature = "cargo-clippy", allow(option_option))]
|
32 |
media_type: Option<Option<Mime>>,
|
164 |
/// The funny types here are used to please derive_builder.
|
165 |
#[allow(clippy::option_option)]
|
166 |
fn canonicalize_opt_prefix(prefix: &Option<Option<PathBuf>>) -> Result<Option<PathBuf>> {
|
301 |
filters: Vec<Filter>,
|
302 |
#[allow(clippy::option_option)]
|
303 |
alloc_time: Option<Option<AllocTime>>,
|
321 |
#[allow(clippy::option_option)]
|
322 |
#[tracing::instrument]
|
8 |
last_character_was_cr: bool,
|
9 |
#[allow(clippy::option_option)]
|
10 |
to_reconsume: Option<Option<u8>>,
|
79 |
/// Deserialize a JSON `null` value as `Some(None)` instead of `None`.
|
80 |
#[allow(clippy::option_option)]
|
81 |
pub fn deserialize_null_to_some_none<'de, D, T>(d: D) -> Result<Option<Option<T>>, D::Error>
|
89 |
/// Serialize a `Some(None)` value as the invalid value instead of `null`.
|
90 |
#[allow(clippy::option_option)]
|
91 |
#[allow(clippy::trivially_copy_pass_by_ref)]
|
107 |
/// Deserialize an invalid value as `Some(None)` for an Option<Option<ID>> field.
|
108 |
#[allow(clippy::option_option)]
|
109 |
pub fn deserialize_invalid_to_some_none<'de, D, T>(d: D) -> Result<Option<Option<T>>, D::Error>
|
45 |
/// Identify an image. It can also be used for read an image as `MagickWand` instances.
|
46 |
#[allow(clippy::option_option)]
|
47 |
pub fn identify(
|
33 |
#[structopt(long)]
|
34 |
#[allow(clippy::option_option)]
|
35 |
/// Log file, stdout if no file, no logging if not present
|
156 |
#[structopt(short)]
|
157 |
#[allow(clippy::option_option)]
|
158 |
arg: Option<Option<i32>>,
|
181 |
#[derive(StructOpt, PartialEq, Debug)]
|
182 |
#[allow(clippy::option_option)]
|
183 |
struct Opt {
|
83 |
#[allow(clippy::option_option)]
|
84 |
fn pop_term(&mut self) -> Option<Option<ExprTerm<'a>>> {
|
85 |
#[allow(clippy::option_option)]
|
86 |
fn pop_term(&mut self) -> Option<Option<ExprTerm<'a>>> {
|
112 |
#[allow(clippy::option_option)]
|
113 |
pub fn get_as_string(&mut self, key: u128) -> Result<Option<Option<String>>, cannyls::Error> {
|
36 |
/// Read <https://katex.org/docs/options.html> for more information.
|
37 |
#[allow(clippy::option_option)]
|
38 |
max_size: Option<Option<f64>>,
|
41 |
/// Read <https://katex.org/docs/options.html> for more information.
|
42 |
#[allow(clippy::option_option)]
|
43 |
max_expand: Option<Option<i32>>,
|
126 |
#[serde(default, skip_serializing_if = "Option::is_none")]
|
127 |
#[allow(clippy::option_option)]
|
128 |
pub script: Option<Option<u64>>,
|
8 |
#[structopt(name = "mkbookpdf")]
|
9 |
#[allow(clippy::option_option)]
|
10 |
struct Opt {
|
178 |
/// couldn't be found when it was last searched for.
|
179 |
#[allow(clippy::option_option)]
|
180 |
pub(crate) fn transaction_id_position(&self, transaction_id: u64) -> Option<Option<u64>> {
|
221 |
#[allow(clippy::type_complexity)]
|
222 |
#[allow(clippy::option_option)]
|
223 |
fn query_through<'a>(
|
239 |
#[allow(clippy::type_complexity)]
|
240 |
#[allow(clippy::option_option)]
|
241 |
fn lookup<'a>(
|
22 |
/// `None` for multiple items.
|
23 |
#[allow(clippy::option_option)]
|
24 |
pub fn at_most_one(self) -> Option<Option<T>> {
|
188 |
#[inline]
|
189 |
#[allow(clippy::option_option)]
|
190 |
fn step(&mut self) -> Option<Option<Element<'a>>> {
|
4437 |
#[allow(clippy::option_option)]
|
4438 |
struct MinAccumulator {
|
4465 |
#[allow(clippy::option_option)]
|
4466 |
struct MaxAccumulator {
|
4510 |
#[allow(clippy::option_option)]
|
4511 |
struct GroupConcatAccumulator {
|
258 |
#[allow(clippy::option_option)]
|
259 |
#[inline]
|
328 |
#[allow(clippy::option_option)]
|
329 |
#[inline]
|
45 |
#[clap(long = "amend")]
|
46 |
#[allow(clippy::option_option)]
|
47 |
pub amend: Option<Option<String>>,
|
448 |
}
|
449 |
#[allow(clippy::option_option)]
|
450 |
#[allow(clippy::unnecessary_wraps)]
|
1110 |
/// we print to stdout.
|
1111 |
#[allow(clippy::option_option)]
|
1112 |
output: Option<Option<PathBuf>>,
|
11 |
/// The reference to the nested options containing the Peek Element
|
12 |
#[allow(clippy::option_option)]
|
13 |
container: NonNull<Option<Option<I>>>,
|
37 |
/// Create a new `PeekRef` for the nested Options
|
38 |
#[allow(clippy::option_option)]
|
39 |
pub fn new(option: &'a mut Option<Option<I>>) -> Option<PeekRef<'a, I>> {
|
105 |
/// or the value was taken via a PeekRef
|
106 |
#[allow(clippy::option_option)]
|
107 |
peek_window: Option<Option<IT>>,
|
498 |
// The "*" entries are to be applied regardless of file name
|
499 |
#[allow(clippy::option_option)]
|
500 |
fn line_file(line: &str) -> Option<Option<String>> {
|
26 |
#[allow(clippy::option_option, dead_code)]
|
27 |
#[derive(JsonSchema)]
|
45 |
/// ```
|
46 |
#[allow(clippy::option_option)]
|
47 |
pub mod double_option {
|
17 |
/// * `Some(Some(term))` means that the matcher matches a single proper graph name.
|
18 |
#[allow(clippy::option_option)]
|
19 |
fn constant(&self) -> Option<Option<&Self::Term>>;
|
55 |
/// * `Some(Some(term))` means that given index is associated to a proper graph name.
|
56 |
#[allow(clippy::option_option)]
|
57 |
fn get_graph_name(&self, i: Self::Index) -> Option<Option<&Term<Self::TermData>>>;
|
60 |
/// * `Some(Some(term))` means that given index is associated to a proper graph name.
|
61 |
#[allow(clippy::option_option)]
|
62 |
fn get_graph_name(&self, i: Self::Index) -> Option<Option<&FTerm<Self::Factory>>> {
|
13 |
pub(crate) flags: MessageFlags,
|
14 |
#[allow(clippy::option_option)]
|
15 |
pub(crate) allowed_mentions: Option<Option<AllowedMentions>>,
|
286 |
/// * None if the pool is not encrypted
|
287 |
#[allow(clippy::option_option)]
|
288 |
pub fn pool_name(&self) -> Option<Option<&Name>> {
|
56 |
#[structopt(long)]
|
57 |
#[allow(clippy::option_option)]
|
58 |
/// Log file, stdout if no file, no logging if not present
|
156 |
#[structopt(short)]
|
157 |
#[allow(clippy::option_option)]
|
158 |
arg: Option<Option<i32>>,
|
181 |
#[derive(StructOpt, PartialEq, Debug)]
|
182 |
#[allow(clippy::option_option)]
|
183 |
struct Opt {
|
24 |
#[allow(clippy::option_option)]
|
25 |
#[derive(Debug, JsonSchema)]
|
176 |
#[allow(clippy::option_option)]
|
177 |
#[allow(clippy::too_many_arguments)]
|
120 |
#[allow(clippy::too_many_arguments)]
|
121 |
#[allow(clippy::option_option)]
|
122 |
pub fn update_peer(
|
47 |
ttl: Option<u32>,
|
48 |
#[allow(clippy::option_option)]
|
49 |
keepalive: Option<Option<Duration>>,
|
553 |
/// Received a close frame. Tells if we need to return a close frame to the user.
|
554 |
#[allow(clippy::option_option)]
|
555 |
fn do_close<'t>(&mut self, close: Option<CloseFrame<'t>>) -> Option<Option<CloseFrame<'t>>> {
|
24 |
struct UpdateGuildMemberFields<'a> {
|
25 |
#[allow(clippy::option_option)]
|
26 |
#[serde(skip_serializing_if = "Option::is_none")]
|
36 |
)]
|
37 |
#[allow(clippy::option_option)]
|
38 |
pub struct Opts {
|
648 |
)]
|
649 |
#[allow(clippy::option_option)]
|
650 |
pub script: Option<Option<u64>>,
|
653 |
#[allow(clippy::option_option)]
|
654 |
fn deserialize_to_nullable_u64<'de, D>(deserializer: D) -> Result<Option<Option<u64>>, D::Error>
|
550 |
/// Received a close frame. Tells if we need to return a close frame to the user.
|
551 |
#[allow(clippy::option_option)]
|
552 |
fn do_close<'t>(&mut self, close: Option<CloseFrame<'t>>) -> Option<Option<CloseFrame<'t>>> {
|
550 |
/// Received a close frame. Tells if we need to return a close frame to the user.
|
551 |
#[allow(clippy::option_option)]
|
552 |
fn do_close<'t>(&mut self, close: Option<CloseFrame<'t>>) -> Option<Option<CloseFrame<'t>>> {
|
429 |
#[doc(hidden)]
|
430 |
#[allow(clippy::option_option)]
|
431 |
fn field_deprecation(_idx: usize) -> Option<Option<&'static str>> {
|
20 |
lexer: Lexer<'a>,
|
21 |
#[allow(clippy::option_option)]
|
22 |
peeked: Option<Option<Token<'a>>>,
|
31 |
clippy::inline_always,
|
32 |
clippy::option_option,
|
33 |
clippy::default_trait_access,
|
3 |
#![allow(clippy::identity_op)] //because clippy forbides 1 << 0 in c-like enums
|
4 |
#![allow(clippy::option_option)] //opt<opt<>> is required to properly handle nullables
|
1 |
#![allow(clippy::option_option)]
|
1 |
#![allow(clippy::option_option)]
|
10 |
clippy::non_ascii_literal,
|
11 |
clippy::option_option,
|
12 |
clippy::struct_excessive_bools,
|
15 |
clippy::trivially_copy_pass_by_ref,
|
16 |
clippy::option_option,
|
17 |
clippy::boxed_local,
|
49 |
feature = "cargo-clippy",
|
50 |
allow(type_complexity, option_option, indexing_slicing)
|
51 |
)]
|
2 |
#![warn(rust_2018_idioms)]
|
3 |
#![allow(clippy::option_option)]
|
2 |
#![warn(rust_2018_idioms)]
|
3 |
#![allow(clippy::option_option)]
|
15 |
clippy::needless_pass_by_value,
|
16 |
clippy::option_option,
|
17 |
clippy::return_self_not_must_use,
|
1 |
#![deny(clippy::pedantic, missing_docs)]
|
2 |
#![allow(clippy::module_name_repetitions, clippy::option_option)]
|
1 |
#![allow(clippy::module_inception, clippy::option_option, clippy::cast_sign_loss, clippy::cast_possible_truncation, clippy::cast_possible_wrap, clippy::cast_lossless)]
|
33 |
clippy::type_complexity,
|
34 |
clippy::option_option,
|
35 |
)]
|
2 |
#![warn(clippy::pedantic)]
|
3 |
#![allow(clippy::module_name_repetitions, clippy::option_option)]
|
4 |
#![cfg_attr(not(test), warn(clippy::dbg_macro))]
|
2 |
// #![warn(rust_2018_idioms)]
|
3 |
#![allow(clippy::option_option)]
|
2 |
// #![warn(rust_2018_idioms)]
|
3 |
#![allow(clippy::option_option)]
|
1 |
#![cfg_attr(feature = "nightly", feature(specialization, try_trait))]
|
2 |
#![allow(clippy::option_option)]
|
3 |
#![forbid(missing_docs)]
|