141 |
#[allow(clippy::question_mark)]
|
142 |
// We could use the `?` operator, but that would be more cryptic
|
146 |
.extension().and_then(|e| e.to_str());
|
147 |
#[allow(clippy::question_mark)]
|
148 |
if common_extension.is_none() {
|
13 |
let deserialize_result = Deserialize::deserialize(deserializer);
|
14 |
#[allow(clippy::question_mark)]
|
15 |
if let Err(err) = deserialize_result {
|
20 |
#[async_trait]
|
21 |
#[allow(clippy::question_mark)]
|
22 |
pub trait Transaction<T> {
|
165 |
/// by the selected datasource
|
166 |
#[allow(clippy::question_mark)]
|
167 |
pub async fn query(
|
90 |
/// Should not be possible.
|
91 |
#[allow(clippy::question_mark)]
|
92 |
pub fn pile_from_index_validated(card_str: &'static str) -> Result<Pile, DeckError> {
|
492 |
#[allow(clippy::question_mark)]
|
493 |
pub fn scan_hex_words<U, G>(&mut self, finalop: G) -> Result<U, ScanError>
|
552 |
/// Scans a sequence of phrases containing base64 encoded data.
|
553 |
#[allow(clippy::question_mark)]
|
554 |
pub fn scan_base64_phrases<U, G>(
|
253 |
/// Finalizes decoding and returns the decoded data.
|
254 |
#[allow(clippy::question_mark)] // false positive
|
255 |
pub fn finalize(mut self) -> Result<Builder::Octets, DecodeError> {
|
122 |
/// the offset to shift all values to >=0 is also unknown.
|
123 |
#[allow(clippy::question_mark)]
|
124 |
fn estimate(column: &dyn Column) -> Option<f32> {
|
567 |
// https://github.com/rust-lang/rust-clippy/issues/8269
|
568 |
#[allow(clippy::question_mark)]
|
569 |
if rx.send(SearchProgress::Searched(seen)).is_err() {
|
176 |
*/
|
177 |
#[allow(clippy::question_mark)]
|
178 |
pub fn add_edges(&mut self, edges: Vec<Edge<T, A>>) -> Result<(), Error>
|
213 |
*/
|
214 |
#[allow(clippy::question_mark)]
|
215 |
pub fn add_edge_tuples(&mut self, edges: Vec<(T, T)>) -> Result<(), Error>
|
102 |
}
|
103 |
#[allow(clippy::question_mark)]
|
104 |
let mut path = if let Ok(path) = input.parse::<syn::Path>() {
|
84 |
for packet_batch in packet_batches {
|
85 |
#[allow(clippy::question_mark)]
|
86 |
if sendr.send(packet_batch).is_err() {
|
84 |
for packet_batch in packet_batches {
|
85 |
#[allow(clippy::question_mark)]
|
86 |
if sendr.send(packet_batch).is_err() {
|
296 |
/// prevent any further inconsistencies.
|
297 |
#[allow(clippy::question_mark)] // These are currently false positives...
|
298 |
pub fn complete(mut self, result: CommandResult) {
|
44 |
type Item = Node<T>;
|
45 |
#[allow(clippy::question_mark)]
|
46 |
fn next(&mut self) -> Option<Node<T>> {
|
43 |
}
|
44 |
#[allow(clippy::question_mark)] //very weird syntax
|
45 |
if supported_config.is_none() {
|
309 |
#[allow(clippy::question_mark)]
|
310 |
let flow_id = if let Ok(flow_id) = FlowId::try_from(&event) {
|
105 |
/// ```
|
106 |
#[allow(clippy::question_mark)]
|
107 |
pub const fn try_new(start: usize, length: u16) -> Option<Span> {
|
167 |
#[allow(clippy::question_mark)]
|
168 |
/// `decode_packed` function decoded a given byte-array into list of required values specified in `types` parameter.
|
107 |
// Returns Some(player) if all cells contain same Player.
|
108 |
#[allow(clippy::question_mark)]
|
109 |
let all_same = |i1: usize, i2: usize, i3: usize| -> Option<Player> {
|
176 |
let result = self.draw_line(begin, end, style);
|
177 |
#[allow(clippy::question_mark)]
|
178 |
if result.is_err() {
|
318 |
let result = self.draw_pixel((pos.0 + dx as i32, pos.1 + dy as i32), color);
|
319 |
#[allow(clippy::question_mark)]
|
320 |
if result.is_err() {
|
107 |
// edited their message
|
108 |
#[allow(clippy::question_mark)]
|
109 |
if user_msg_update.content.is_none() {
|
734 |
#[allow(clippy::question_mark)]
|
735 |
if parent_elem.is_none() {
|
82 |
/// If it cannot parse the date, it simply returns `None`.
|
83 |
#[allow(clippy::question_mark)] // False positive.
|
84 |
pub fn parse_http_date(date: &str) -> Option<DateTime<Utc>> {
|
17 |
/// and therefore this is merely a hint and not a precise calculation.
|
18 |
#[allow(clippy::question_mark)] // `?` is not supported in `const` functions.
|
19 |
pub const fn size_hint(item_count: usize, data_size: usize) -> Option<usize> {
|
108 |
/// Get the primary key of the ActiveModel
|
109 |
#[allow(clippy::question_mark)]
|
110 |
fn get_primary_key_value(&self) -> Option<ValueTuple> {
|
1139 |
fn next_back(&mut self) -> Option<T> {
|
1140 |
#[allow(clippy::question_mark)]
|
1141 |
if self.first.is_none() {
|
131 |
for packet_batch in packet_batches {
|
132 |
#[allow(clippy::question_mark)]
|
133 |
if sendr.send(packet_batch).is_err() {
|
2206 |
) -> Result<()> {
|
2207 |
#[allow(clippy::question_mark)]
|
2208 |
if transaction.verify().is_err() {
|
122 |
/// the offset to shift all values to >=0 is also unknown.
|
123 |
#[allow(clippy::question_mark)]
|
124 |
fn estimate(column: &dyn Column) -> Option<f32> {
|
121 |
/// the offset to shift all values to >=0 is also unknown.
|
122 |
#[allow(clippy::question_mark)]
|
123 |
fn estimate(column: &dyn Column) -> Option<f32> {
|
185 |
#[allow(clippy::question_mark)]
|
186 |
impl<S> Iterator for SourcesQueueOutput<S>
|
120 |
pub const fn max_age(mut self, max_age: u32) -> Result<Self, ValidationError> {
|
121 |
#[allow(clippy::question_mark)]
|
122 |
if let Err(source) = validate_invite_max_age(max_age) {
|
163 |
pub const fn max_uses(mut self, max_uses: u16) -> Result<Self, ValidationError> {
|
164 |
#[allow(clippy::question_mark)]
|
165 |
if let Err(source) = validate_invite_max_uses(max_uses) {
|
117 |
pub const fn limit(mut self, limit: u16) -> Result<Self, ValidationError> {
|
118 |
#[allow(clippy::question_mark)]
|
119 |
if let Err(source) = validate_get_channel_messages_limit(limit) {
|
70 |
pub const fn limit(mut self, limit: u16) -> Result<Self, ValidationError> {
|
71 |
#[allow(clippy::question_mark)]
|
72 |
if let Err(source) = validate_get_channel_messages_limit(limit) {
|
76 |
pub const fn limit(mut self, limit: u16) -> Result<Self, ValidationError> {
|
77 |
#[allow(clippy::question_mark)]
|
78 |
if let Err(source) = validate_get_reactions_limit(limit) {
|
158 |
) -> Result<Self, ChannelValidationError> {
|
159 |
#[allow(clippy::question_mark)]
|
160 |
if let Err(source) = validate_rate_limit_per_user(rate_limit_per_user) {
|
126 |
pub const fn bitrate(mut self, bitrate: u32) -> Result<Self, ChannelValidationError> {
|
127 |
#[allow(clippy::question_mark)]
|
128 |
if let Err(source) = validate_bitrate(bitrate) {
|
177 |
) -> Result<Self, ChannelValidationError> {
|
178 |
#[allow(clippy::question_mark)]
|
179 |
if let Some(default_thread_rate_limit_per_user) = default_thread_rate_limit_per_user {
|
293 |
) -> Result<Self, ChannelValidationError> {
|
294 |
#[allow(clippy::question_mark)]
|
295 |
if let Err(source) = twilight_validate::channel::rate_limit_per_user(rate_limit_per_user) {
|
272 |
) -> Result<ResponseFuture<AutoModerationRule>, ValidationError> {
|
273 |
#[allow(clippy::question_mark)]
|
274 |
if let Err(source) =
|
94 |
pub fn validate(self) -> Result<Self, EmbedValidationError> {
|
95 |
#[allow(clippy::question_mark)]
|
96 |
if let Err(source) = validate_embed(&self.0) {
|
51 |
/// `(b'1', b'a')` is parsed as `0x1a`.
|
52 |
#[allow(clippy::question_mark)] // `?` is not allowed in const functions.
|
53 |
const fn parse_byte_from_ascii_char_pair(a: u8, b: u8) -> Option<u8> {
|
177 |
// Silent the warning as we want to the error message
|
178 |
#[allow(clippy::question_mark)]
|
179 |
if stdout().write_all(&s).is_err() {
|
562 |
// Silent the warning as we want to the error message
|
563 |
#[allow(clippy::question_mark)]
|
564 |
if mode::chmod(to_create, b.mode()).is_err() {
|
705 |
// Silent the warning as we want to the error message
|
706 |
#[allow(clippy::question_mark)]
|
707 |
if mode::chmod(to, b.mode()).is_err() {
|
53 |
// Silent the warning as we want to the error message
|
54 |
#[allow(clippy::question_mark)]
|
55 |
if splice_exact(&pipe_rd, &null_file, res).is_err() {
|
564 |
#[allow(clippy::question_mark)] //spurious
|
565 |
match dest.parent() {
|
10026 |
/// Returns a SymbolTable with all WLambda standard library language symbols.
|
10027 |
#[allow(clippy::question_mark)]
|
10028 |
pub fn std_symbol_table() -> SymbolTable {
|
147 |
async fn require_token(&mut self) {
|
148 |
#[allow(clippy::question_mark)] // TODO https://github.com/rust-lang/rust-clippy/issues/9518
|
149 |
if self.token.is_none() {
|
27 |
// TODO when clippy issue 9175 is fixed remove
|
28 |
#![allow(clippy::question_mark)]
|
29 |
#![deny(unsafe_op_in_unsafe_fn)]
|
97 |
)]
|
98 |
#![allow(clippy::question_mark)] // https://github.com/rust-lang/rust-clippy/issues/8281
|
99 |
#![cfg_attr(not(feature = "std"), no_std)]
|
55 |
clippy::get_first,// .get(0), .get(1) is more readable
|
56 |
clippy::question_mark,// I prefer it very explicit
|
57 |
)]
|
6 |
#![allow(clippy::collapsible_if)]
|
7 |
#![allow(clippy::question_mark)]
|
8 |
#![allow(clippy::transmute_ptr_to_ptr)]
|
1 |
#![allow(clippy::question_mark)] // Want to explicitly 'return None' when escaping loops, the shorter '?' form makes the loops look infinite
|
124 |
clippy::ptr_arg, // https://github.com/rust-lang/rust-clippy/issues/9218
|
125 |
clippy::question_mark, // https://github.com/rust-lang/rust-clippy/issues/7859
|
126 |
// private Deserializer::next
|
73 |
clippy::iter_not_returning_iterator, // https://github.com/rust-lang/rust-clippy/issues/8285
|
74 |
clippy::question_mark, // https://github.com/rust-lang/rust-clippy/issues/7859
|
75 |
// private Deserializer::next
|
11 |
)]
|
12 |
#![allow(clippy::question_mark)]
|
13 |
#![cfg_attr(not(feature = "std"), no_std)]
|
1 |
#![allow(clippy::question_mark)]
|
2 |
//! Create a custom SQLite virtual file system by implementing the [Vfs] trait and registering it
|
1 |
#![allow(clippy::question_mark)]
|
2 |
//! Create a custom SQLite virtual file system by implementing the [Vfs] trait and registering it
|
58 |
#![allow(clippy::identity_op)]
|
59 |
#![allow(clippy::question_mark)]
|
60 |
#![allow(clippy::upper_case_acronyms)]
|
20 |
#![allow(clippy::identity_op)]
|
21 |
#![allow(clippy::question_mark)]
|
22 |
#![allow(clippy::upper_case_acronyms)]
|
58 |
#![allow(clippy::identity_op)]
|
59 |
#![allow(clippy::question_mark)]
|
60 |
#![allow(clippy::upper_case_acronyms)]
|
20 |
#![allow(clippy::identity_op)]
|
21 |
#![allow(clippy::question_mark)]
|
22 |
#![allow(clippy::upper_case_acronyms)]
|