87 |
#[allow(clippy::missing_const_for_fn)]
|
88 |
impl<T> ExpectedFound<T> {
|
2195 |
#[allow(clippy::missing_const_for_fn)]
|
2196 |
impl<T> UneraseError<T> {
|
88 |
#[allow(clippy::missing_const_for_fn)]
|
89 |
impl ROnce {
|
275 |
#[allow(clippy::missing_const_for_fn)]
|
276 |
impl ROnceState {
|
124 |
#[allow(clippy::missing_const_for_fn)]
|
125 |
impl<T> RRwLock<T> {
|
798 |
#[allow(clippy::missing_const_for_fn)]
|
799 |
impl<N> UnwrapEnumError<N> {
|
228 |
#[must_use]
|
229 |
#[allow(clippy::missing_const_for_fn)] // false positive
|
230 |
pub fn into_inner(self) -> String {
|
718 |
impl Children {
|
719 |
#[allow(clippy::missing_const_for_fn)]
|
720 |
pub fn new() -> Self {
|
475 |
impl Domain {
|
476 |
#[allow(clippy::missing_const_for_fn)] // Doesn't work.
|
477 |
#[must_use]
|
29 |
// See https://github.com/rust-lang/rust/issues/66753 for missing_const_for_fn.
|
30 |
#![allow(clippy::missing_const_for_fn)]
|
31 |
match self.part {
|
37 |
#[cfg(test)]
|
38 |
#[allow(clippy::missing_const_for_fn)]
|
39 |
pub fn part_one(text: &'a str) -> Self {
|
48 |
#[cfg(test)]
|
49 |
#[allow(clippy::missing_const_for_fn)]
|
50 |
pub fn part_two(text: &'a str) -> Self {
|
1173 |
#[inline]
|
1174 |
#[allow(clippy::missing_const_for_fn)]
|
1175 |
fn some<T>(_: Option<T>, x: T) -> Option<T> {
|
43 |
#[must_use]
|
44 |
#[allow(clippy::missing_const_for_fn)]
|
45 |
pub fn ambient_authority() -> AmbientAuthority {
|
957 |
#[inline]
|
958 |
#[allow(clippy::missing_const_for_fn)] // Can't be const in 1.56
|
959 |
pub fn id(&self) -> &String {
|
964 |
#[inline]
|
965 |
#[allow(clippy::missing_const_for_fn)] // Can't be const in 1.56
|
966 |
pub fn key(&self) -> &String {
|
971 |
#[inline]
|
972 |
#[allow(clippy::missing_const_for_fn)] // Can't be const in 1.56
|
973 |
pub fn rev(&self) -> &String {
|
18 |
#[must_use]
|
19 |
#[allow(clippy::missing_const_for_fn)] // Can't be const in 1.56
|
20 |
pub fn new(record: T, key: Option<String>) -> Self {
|
73 |
/// Retrieves the document `_from` field, storing the target documents `id`.
|
74 |
#[allow(clippy::missing_const_for_fn)] // Can't be const in 1.56
|
75 |
#[must_use]
|
81 |
/// Retrieves the document `_to` field, storing the target documents `id`.
|
82 |
#[allow(clippy::missing_const_for_fn)] // Can't be const in 1.56
|
83 |
#[must_use]
|
61 |
#[inline]
|
62 |
#[allow(clippy::missing_const_for_fn)]
|
63 |
pub(crate) fn new(cursor: Cursor<DatabaseRecord<T>>, database: Database) -> Self {
|
81 |
#[inline]
|
82 |
#[allow(clippy::missing_const_for_fn)]
|
83 |
pub fn has_more(&self) -> bool {
|
62 |
/// Returns the underlying Vec.
|
63 |
#[allow(clippy::missing_const_for_fn)] // false positive
|
64 |
#[must_use]
|
155 |
/// Returns the underlying Cow.
|
156 |
#[allow(clippy::missing_const_for_fn)] // false positive
|
157 |
#[must_use]
|
162 |
/// Returns the underlying Vec inside of the Cow, or clones the borrowed bytes into a new Vec..
|
163 |
#[allow(clippy::missing_const_for_fn)] // false positive
|
164 |
#[must_use]
|
179 |
/// Reference the cell's boundary.
|
180 |
#[allow(clippy::missing_const_for_fn)]
|
181 |
#[inline]
|
443 |
impl Argue {
|
444 |
#[allow(clippy::missing_const_for_fn)] // Doesn't work!
|
445 |
#[must_use]
|
96 |
#[must_use]
|
97 |
#[allow(clippy::missing_const_for_fn, clippy::as_conversions)]
|
98 |
pub unsafe fn from_raw(ptr: *const T) -> Self {
|
21 |
}
|
22 |
#[allow(clippy::missing_const_for_fn)]
|
23 |
pub unsafe fn as_ref<'a>(self) -> &'a T {
|
84 |
///
|
85 |
#[allow(clippy::missing_const_for_fn)]
|
86 |
// clippy doesn't realise indexing a String is not const
|
22 |
///
|
23 |
#[allow(clippy::missing_const_for_fn)]
|
24 |
// clippy doesn't realise allocating a String is not const
|
320 |
// `axum`. See <https://github.com/rust-lang/rust/issues/93706>.
|
321 |
#[allow(clippy::missing_const_for_fn)]
|
322 |
impl<Service, RequestBody, ResponseBody>
|
55 |
/// [`Service`](HyperService).
|
56 |
#[allow(clippy::missing_const_for_fn)]
|
57 |
pub fn into_inner(self) -> Service {
|
156 |
// `axum`. See <https://github.com/rust-lang/rust/issues/93706>.
|
157 |
#[allow(clippy::missing_const_for_fn)]
|
158 |
impl<Service, Request> UpgradeHttpFuture<Service, Request>
|
28 |
#[allow(clippy::missing_const_for_fn)]
|
29 |
impl ClothBuilder {
|
101 |
impl<H, R, U, T, S> ConfigBuilder<H, R, U, T, S> {
|
102 |
#[allow(clippy::missing_const_for_fn)] // misreport
|
103 |
fn cast<R2, U2, T2, S2>(self) -> ConfigBuilder<H, R2, U2, T2, S2> {
|
44 |
#[cfg(not(target_arch = "wasm32"))]
|
45 |
#[allow(clippy::missing_const_for_fn)]
|
46 |
pub fn with_runtime(mut self, handle: Handle) -> Self {
|
68 |
#[cfg(not(target_arch = "wasm32"))]
|
69 |
#[allow(clippy::missing_const_for_fn)]
|
70 |
pub fn with_certificate(mut self, certificate: Certificate) -> Self {
|
76 |
#[cfg(feature = "test-util")]
|
77 |
#[allow(clippy::missing_const_for_fn)]
|
78 |
pub fn with_protocol_version(mut self, version: &'static str) -> Self {
|
2192 |
/// including, `excluded_start`.
|
2193 |
#[allow(clippy::missing_const_for_fn)]
|
2194 |
pub fn after(mut self, excluded_start: T) -> Self {
|
2202 |
/// [`Ordering::Equal`](std::cmp::Ordering::Equal) to `included_start`.
|
2203 |
#[allow(clippy::missing_const_for_fn)]
|
2204 |
pub fn start_at(mut self, included_start: T) -> Self {
|
2212 |
/// `excluded_end`.
|
2213 |
#[allow(clippy::missing_const_for_fn)]
|
2214 |
pub fn before(mut self, excluded_end: T) -> Self {
|
2222 |
/// [`Ordering::Equal`](std::cmp::Ordering::Equal) to `included_end`.
|
2223 |
#[allow(clippy::missing_const_for_fn)]
|
2224 |
pub fn end_at(mut self, included_end: T) -> Self {
|
136 |
/// Sets the endpoint to use. See [`Self::endpoint`] for more information.
|
137 |
#[allow(clippy::missing_const_for_fn)] // destructors
|
138 |
pub fn endpoint(mut self, endpoint: Endpoint) -> Self {
|
318 |
#[must_use]
|
319 |
#[allow(clippy::missing_const_for_fn)]
|
320 |
pub fn into_input(self) -> Option<Reader<'a>> {
|
325 |
#[must_use]
|
326 |
#[allow(clippy::missing_const_for_fn)]
|
327 |
pub fn into_output(self) -> Option<Writer<'a>> {
|
52 |
///Non-const due to [E0493](https://doc.rust-lang.org/error-index.html#E0493)
|
53 |
#[allow(clippy::missing_const_for_fn)]
|
54 |
pub fn to_left(self) -> Option<L> {
|
86 |
///Non-const due to [E0493](https://doc.rust-lang.org/error-index.html#E0493)
|
87 |
#[allow(clippy::missing_const_for_fn)]
|
88 |
pub fn to_right(self) -> Option<R> {
|
116 |
///Converts Either<L, R> to Result<L, R>
|
117 |
#[allow(clippy::missing_errors_doc, clippy::missing_const_for_fn)] //no need, issue with destructors
|
118 |
pub fn to_result(self) -> Result<L, R> {
|
150 |
///If `L` == `R` then this function will return an `L` - useful for when the [`Either`] side signifies something, but always returns the same type.
|
151 |
#[allow(clippy::missing_const_for_fn)] //Cannot be const as destructors cannot be const - Github error 8874
|
152 |
pub fn one_type(self) -> T {
|
101 |
#[must_use]
|
102 |
#[allow(clippy::missing_const_for_fn)] //destructor issues
|
103 |
pub fn get_all(self) -> Vec<T> {
|
202 |
#[allow(clippy::missing_const_for_fn)] // flat out wrong
|
203 |
fn into_data(self) -> HashMap<String, Data> {
|
117 |
#[must_use]
|
118 |
#[allow(clippy::missing_const_for_fn)] // false positive, `this` might get dropped
|
119 |
pub fn take_value(this: Self) -> T {
|
1160 |
/// steal owned columns by value
|
1161 |
#[allow(clippy::missing_const_for_fn)] // clippy bug
|
1162 |
pub fn get_cols_full(self) -> Vec<OutCol> {
|
75 |
/// ```
|
76 |
#[allow(clippy::missing_const_for_fn)] // can only wasm_bindgen non-const fn
|
77 |
#[wasm_bindgen(getter)]
|
120 |
/// ```
|
121 |
#[allow(clippy::missing_const_for_fn)] // can only wasm_bindgen non-const fn
|
122 |
#[wasm_bindgen(getter)]
|
90 |
/// ```
|
91 |
#[allow(clippy::missing_const_for_fn)] // there cannot be constant trees just yet
|
92 |
pub fn root(&self) -> NodeRef<'_, B, L, K, S> {
|
72 |
/// Extracts the provided right child to add, which was deemed useless when the operation failed.
|
73 |
#[allow(clippy::missing_const_for_fn)] // Clippy has no idea what a destructor is
|
74 |
pub fn right_child(self) -> L {
|
198 |
}
|
199 |
#[allow(clippy::missing_const_for_fn)] // const fn cannot evaluate drop
|
200 |
pub(super) fn into_value(self) -> NodeValue<B, L> {
|
60 |
// const_option is not stable, and so are trait bounds on const fn parameters other than Sized
|
61 |
#[allow(clippy::missing_const_for_fn)]
|
62 |
pub fn is_root(&self) -> bool {
|
79 |
/// Returns `true` if the node is the root node, `false` otherwise.
|
80 |
#[allow(clippy::missing_const_for_fn)] // const_option is not stable
|
81 |
pub fn is_root(&self) -> bool {
|
94 |
/// ```
|
95 |
#[allow(clippy::missing_const_for_fn)] // there cannot be constant trees just yet
|
96 |
pub fn root(&self) -> NodeRef<'_, B, L, K, S> {
|
213 |
}
|
214 |
#[allow(clippy::missing_const_for_fn)] // const fn cannot evaluate drop
|
215 |
pub(super) fn into_value(self) -> NodeValue<B, L> {
|
95 |
// const_option is not stable, and so are trait bounds on const fn parameters other than Sized
|
96 |
#[allow(clippy::missing_const_for_fn)]
|
97 |
pub fn is_root(&self) -> bool {
|
168 |
/// Returns `true` if the node is the root node, `false` otherwise.
|
169 |
#[allow(clippy::missing_const_for_fn)] // const_option is not stable
|
170 |
pub fn is_root(&self) -> bool {
|
161 |
/// Extracts the value, discarding information about whether the node was a leaf or branch. *Available only if the leaf and branch payloads are the same type.*
|
162 |
#[allow(clippy::missing_const_for_fn)]
|
163 |
pub fn into_inner(self) -> T {
|
408 |
// constant functions cannot evaluate destructors
|
409 |
#[allow(clippy::missing_const_for_fn)]
|
410 |
fn no_check<F>(_: F) -> &'static str { "" }
|
188 |
/// actually require the standard library, but is currently only used when it's enabled.
|
189 |
#[allow(clippy::missing_const_for_fn)] // false positive
|
190 |
#[cfg(feature = "std")]
|
66 |
))]
|
67 |
#[allow(unused_variables, clippy::missing_const_for_fn)]
|
68 |
fn tm_to_offset(tm: libc::tm) -> Option<UtcOffset> {
|
42 |
#[must_use]
|
43 |
#[allow(clippy::missing_const_for_fn)]
|
44 |
pub fn num_transcripts(&self) -> u32 {
|
87 |
#[must_use]
|
88 |
#[allow(clippy::missing_const_for_fn)]
|
89 |
pub fn into_inner(self) -> Vec<OwnedCandidateTranscript> {
|
56 |
#[allow(clippy::missing_const_for_fn)]
|
57 |
pub fn minimal_prefix(mut self) -> Self {
|
108 |
#[allow(clippy::missing_const_for_fn)]
|
109 |
pub fn release_trie(self) -> Result<Trie> {
|
285 |
/// Unpacks this [`Compose`] into the underlying CLIs.
|
286 |
#[allow(clippy::missing_const_for_fn)] // false positive: drop in const
|
287 |
#[must_use]
|
109 |
/// Replaces [`Parser`].
|
110 |
#[allow(clippy::missing_const_for_fn)] // false positive: drop in const
|
111 |
#[must_use]
|
130 |
/// Replaces [`Runner`].
|
131 |
#[allow(clippy::missing_const_for_fn)] // false positive: drop in const
|
132 |
#[must_use]
|
151 |
/// Replaces [`Writer`].
|
152 |
#[allow(clippy::missing_const_for_fn)] // false positive: drop in const
|
153 |
#[must_use]
|
632 |
/// [`Feature`]: gherkin::Feature
|
633 |
#[allow(clippy::missing_const_for_fn)] // false positive: drop in const
|
634 |
#[must_use]
|
976 |
/// [`Scenario`]: gherkin::Scenario
|
977 |
#[allow(clippy::missing_const_for_fn)] // false positive: drop in const
|
978 |
#[must_use]
|
65 |
/// Unwraps the inner [`Event::value`] loosing all the attached metadata.
|
66 |
#[allow(clippy::missing_const_for_fn)] // false positive: drop in const
|
67 |
#[must_use]
|
94 |
/// old one along.
|
95 |
#[allow(clippy::missing_const_for_fn)] // false positive: drop in const
|
96 |
#[must_use]
|
511 |
/// [`Scenario`]: gherkin::Scenario
|
512 |
#[allow(clippy::missing_const_for_fn)] // false positive: drop in const
|
513 |
#[must_use]
|
551 |
/// [`Scenario`]: gherkin::Scenario
|
552 |
#[allow(clippy::missing_const_for_fn)] // false positive: drop in const
|
553 |
#[must_use]
|
22 |
{
|
23 |
#[allow(clippy::missing_const_for_fn)]
|
24 |
pub(crate) fn new(inner: P) -> Self {
|
22 |
{
|
23 |
#[allow(clippy::missing_const_for_fn)]
|
24 |
pub(crate) fn new(inner: P) -> Self {
|
215 |
{
|
216 |
#[allow(clippy::missing_const_for_fn)]
|
217 |
#[inline(always)]
|
226 |
#[allow(clippy::missing_const_for_fn)]
|
227 |
#[inline(always)]
|
232 |
#[allow(clippy::missing_const_for_fn)]
|
233 |
#[inline(always)]
|
238 |
#[allow(clippy::missing_const_for_fn)]
|
239 |
#[inline(always)]
|
289 |
/// Starting position of the match.
|
290 |
#[allow(clippy::missing_const_for_fn)]
|
291 |
#[inline(always)]
|
452 |
/// known platforms.
|
453 |
#[allow(clippy::missing_const_for_fn)]
|
454 |
pub fn with_config(mut self, config: DynamicLibraryConfig) -> Self {
|
78 |
/// Set the attribute's ident
|
79 |
#[allow(clippy::missing_const_for_fn)]
|
80 |
pub fn ident(mut self, ident: String) -> Self {
|
97 |
/// Set the attribute's docstring
|
98 |
#[allow(clippy::missing_const_for_fn)]
|
99 |
pub fn doc(mut self, doc: String) -> Self {
|
73 |
// This function is not const because the counterpart of stdlib isn't
|
74 |
#[allow(clippy::missing_const_for_fn)]
|
75 |
#[inline(always)]
|
55 |
// well known.
|
56 |
#[allow(clippy::missing_const_for_fn)]
|
57 |
#[must_use]
|
170 |
// types have (non-costs) destructors.
|
171 |
#[allow(clippy::missing_const_for_fn)]
|
172 |
pub fn deworkaround(self) -> Result<T, E>
|
22 |
/// Get back the original string.
|
23 |
#[allow(clippy::missing_const_for_fn)]
|
24 |
#[must_use]
|
35 |
{
|
36 |
#[allow(clippy::missing_const_for_fn)] // not supported by stable
|
37 |
pub(crate) fn new(name: &'static str, notifier: N, updater: U) -> Self {
|
46 |
#[allow(clippy::missing_const_for_fn)]
|
47 |
pub(super) fn raw(self) -> dbus::Message {
|
20 |
{
|
21 |
#[allow(clippy::missing_const_for_fn)] // not supported by stable
|
22 |
pub(crate) fn new(name: &'static str, runnable: R) -> Self {
|
19 |
{
|
20 |
#[allow(clippy::missing_const_for_fn)]
|
21 |
pub fn new(error: E) -> Self {
|
57 |
#[allow(clippy::missing_const_for_fn)]
|
58 |
#[inline]
|
131 |
///If `L` == `R` then this function will return an `L` - useful for when the [`Either`] side signifies something, but always returns the same type.
|
132 |
#[allow(clippy::missing_const_for_fn)] //Cannot be const as destructors cannot be const - Github error 8874
|
133 |
pub fn one_type(self) -> T {
|
253 |
#[allow(unused_mut)]
|
254 |
#[allow(clippy::missing_const_for_fn)]
|
255 |
pub fn expect_count(mut count: usize) -> usize {
|
43 |
#[inline]
|
44 |
#[allow(clippy::missing_const_for_fn)] // false positive
|
45 |
pub fn into_option_or_if_absent(self, fallback: Option<T>) -> Option<T> {
|
359 |
#[must_use]
|
360 |
#[allow(clippy::missing_const_for_fn, dead_code)]
|
361 |
pub fn is_posix(&self) -> bool {
|
89 |
/// ```
|
90 |
#[allow(clippy::missing_const_for_fn)]
|
91 |
pub fn expected(self) -> Option<E> {
|
115 |
/// ```
|
116 |
#[allow(clippy::missing_const_for_fn)]
|
117 |
pub fn unexpected(self) -> Option<U> {
|
106 |
// https://github.com/rust-lang/rust-clippy/issues/4979
|
107 |
#[allow(clippy::missing_const_for_fn)]
|
108 |
impl Config {
|
181 |
{
|
182 |
#[allow(clippy::missing_const_for_fn)]
|
183 |
pub fn start(self, start: i64) -> Self {
|
194 |
#[allow(clippy::missing_const_for_fn)]
|
195 |
pub fn stop(self, stop: i64) -> RangeBuilder<HasItems, NS> {
|
206 |
#[allow(clippy::missing_const_for_fn)]
|
207 |
pub fn step(self, step: i64) -> Self {
|
431 |
// false positive; clippy thinks this should be a const fn, but it can't be
|
432 |
#[allow(clippy::missing_const_for_fn)]
|
433 |
pub fn unique(self) -> WordlistBuilder<ItemState, NameState, Unique> {
|
99 |
/// Sets the scheme of TF weighting.
|
100 |
#[allow(clippy::missing_const_for_fn)]
|
101 |
pub fn tf(mut self, tf: Option<Tf>) -> Self {
|
106 |
/// Sets the scheme of IDF weighting.
|
107 |
#[allow(clippy::missing_const_for_fn)]
|
108 |
pub fn idf(mut self, idf: Option<Idf<u64>>) -> Self {
|
77 |
impl<T> FossologyResponse<T> {
|
78 |
#[allow(clippy::missing_const_for_fn)]
|
79 |
pub(crate) fn return_response_or_error(self) -> Result<T, FossologyError> {
|
15 |
/// Create new `ParkThread` instance.
|
16 |
#[allow(clippy::missing_const_for_fn)] // perhaps one day the impl needs non-const
|
17 |
pub fn new() -> Self {
|
147 |
#[inline]
|
148 |
#[allow(clippy::missing_const_for_fn)]
|
149 |
pub fn into_values(self) -> Vec<T> {
|
227 |
#[allow(clippy::missing_const_for_fn)] // Doesn't work.
|
228 |
#[must_use]
|
43 |
#[allow(clippy::missing_const_for_fn)] // false positive
|
44 |
pub(crate) fn state(mut self, new_state: State) -> Self {
|
41 |
#[must_use]
|
42 |
#[allow(clippy::missing_const_for_fn)]
|
43 |
pub fn reference(mut self, reference: Reference) -> Self {
|
50 |
#[must_use]
|
51 |
#[allow(clippy::missing_const_for_fn)]
|
52 |
pub fn author(mut self, author: User) -> Self {
|
67 |
#[must_use]
|
68 |
#[allow(clippy::missing_const_for_fn)]
|
69 |
pub fn committer(mut self, committer: User) -> Self {
|
100 |
#[must_use]
|
101 |
#[allow(clippy::missing_const_for_fn)]
|
102 |
pub fn build(self) -> Commit {
|
28 |
#[must_use]
|
29 |
#[allow(clippy::missing_const_for_fn)]
|
30 |
pub fn commit(mut self, commit: Commit) -> Self {
|
37 |
#[must_use]
|
38 |
#[allow(clippy::missing_const_for_fn)]
|
39 |
pub fn parent(mut self, parent: Commit) -> Self {
|
78 |
#[must_use]
|
79 |
#[allow(clippy::missing_const_for_fn)]
|
80 |
pub fn build(self) -> CommitDiff {
|
114 |
#[must_use]
|
115 |
#[allow(clippy::missing_const_for_fn)]
|
116 |
pub fn build(self) -> FileStatus {
|
55 |
#[must_use]
|
56 |
#[allow(clippy::missing_const_for_fn)]
|
57 |
pub fn build(self) -> Reference {
|
184 |
/// Fails if instruction is not a request or is none
|
185 |
#[allow(clippy::missing_const_for_fn)]
|
186 |
pub fn expect_request(self) -> Result<instruction::Kind> {
|
207 |
/// Fails if instruction is not a response or is none
|
208 |
#[allow(clippy::missing_const_for_fn)]
|
209 |
pub fn expect_response(self) -> Result<instruction::Kind> {
|
96 |
///
|
97 |
#[allow(clippy::missing_const_for_fn)]
|
98 |
pub fn selection_max(&self) -> usize {
|
429 |
#[allow(clippy::missing_const_for_fn)]
|
430 |
fn relative_selection(&self) -> usize {
|
9 |
impl Profiler {
|
10 |
#[allow(clippy::missing_const_for_fn)]
|
11 |
pub fn new() -> Self {
|
39 |
#[allow(clippy::missing_const_for_fn)]
|
40 |
fn block(mut self, block: Block<'b>) -> Self {
|
92 |
#[allow(clippy::missing_const_for_fn)]
|
93 |
pub fn block(mut self, block: Block<'a>) -> Self {
|
344 |
/// Extracts the contained value.
|
345 |
#[allow(clippy::missing_const_for_fn)] // *sigh* destructors
|
346 |
pub fn into_inner(self) -> T {
|
633 |
}
|
634 |
#[allow(clippy::missing_const_for_fn)] // unreachable_unchecked isn't stable as const fn
|
635 |
unsafe fn element(&self) -> &T {
|
646 |
}
|
647 |
#[allow(clippy::missing_const_for_fn)] // unreachable_unchecked isn't stable as const fn
|
648 |
unsafe fn hole_link(&self) -> Option<usize> {
|
76 |
#[allow(clippy::missing_const_for_fn)]
|
77 |
pub fn with_extender(mut self, extender: ComplexSelector) -> Self {
|
599 |
#[allow(clippy::missing_const_for_fn)]
|
600 |
pub fn with_selector(self, selector: Option<Box<SelectorList>>) -> Self {
|
70 |
#[must_use]
|
71 |
#[allow(clippy::missing_const_for_fn)]
|
72 |
pub fn string(self) -> Option<String> {
|
83 |
#[must_use]
|
84 |
#[allow(clippy::missing_const_for_fn)]
|
85 |
pub fn list(self) -> Option<Vec<String>> {
|
94 |
#[must_use]
|
95 |
#[allow(clippy::missing_const_for_fn)]
|
96 |
pub fn uv_index(self) -> Option<UVIndex> {
|
20 |
impl<T> HLabelledMap<T> {
|
21 |
#[allow(clippy::missing_const_for_fn)] // const deref ptr is unstable
|
22 |
fn ref_cast(from: &T) -> &Self {
|
14 |
impl<T> HMap<T> {
|
15 |
#[allow(clippy::missing_const_for_fn)] // const deref ptr is unstable
|
16 |
fn ref_cast(from: &T) -> &Self {
|
81 |
#[must_use]
|
82 |
#[allow(clippy::missing_const_for_fn)]
|
83 |
/// Only return videos from the given channel.
|
90 |
#[must_use]
|
91 |
#[allow(clippy::missing_const_for_fn)]
|
92 |
/// Only return videos with any of the given IDs.
|
99 |
#[must_use]
|
100 |
#[allow(clippy::missing_const_for_fn)]
|
101 |
/// Only return videos from a channel part of the given organisation.
|
124 |
#[must_use]
|
125 |
#[allow(clippy::missing_const_for_fn)]
|
126 |
/// Only return videos mentioning the given channel.
|
157 |
#[must_use]
|
158 |
#[allow(clippy::missing_const_for_fn)]
|
159 |
/// Consume the builder, returning the constructed filter.
|
738 |
#[inline]
|
739 |
#[allow(clippy::missing_const_for_fn)]
|
740 |
/// Convert response into a [`Vec<T>`].
|
695 |
#[allow(clippy::missing_const_for_fn)]
|
696 |
fn is_ascii_whitespace(c: char) -> bool {
|
205 |
/// Stores Apple's shared secret required by their requestBody. See: <https://developer.apple.com/documentation/appstorereceipts/requestbody>
|
206 |
#[allow(clippy::missing_const_for_fn)]
|
207 |
#[must_use]
|
1246 |
#[inline]
|
1247 |
#[allow(clippy::missing_const_for_fn)]
|
1248 |
pub fn can_decode(&self) -> bool {
|
57 |
#[allow(clippy::missing_const_for_fn)]
|
58 |
pub fn into_option(self) -> Option<T> {
|
147 |
{
|
148 |
#[allow(clippy::missing_docs_in_private_items, clippy::missing_const_for_fn)]
|
149 |
fn helper<T>(val: <T as TypeIsEqual>::To) -> T {
|
203 |
{
|
204 |
#[allow(clippy::missing_docs_in_private_items, clippy::missing_const_for_fn)]
|
205 |
fn helper<T, E>(val: Result<<T as TypeIsEqual>::To, E>) -> Result<T, E> {
|
24 |
///If `A` == `B` then this function will return an `A` - useful for when the [`Either`] side signifies something, but always returns the same type.
|
25 |
#[allow(clippy::missing_const_for_fn)] //Cannot be const as destructors cannot be const - Github error 8874
|
26 |
pub fn to_normal(self) -> A {
|
87 |
// `slice::from_raw_parts` is not yet stabilized
|
88 |
#[allow(clippy::missing_const_for_fn)]
|
89 |
pub fn as_slice(&self) -> &[u8] {
|
294 |
#[must_use]
|
295 |
#[allow(clippy::missing_const_for_fn)] // unsupported
|
296 |
pub fn with_icon(mut self, icon: Icon) -> Self {
|
268 |
/// Deconstruct the structure.
|
269 |
#[allow(clippy::missing_const_for_fn)] // false positive
|
270 |
pub fn deconstruct(self) -> (Error, State) {
|
274 |
/// Deconstruct the structure returning the error and discarding the owned value.
|
275 |
#[allow(clippy::missing_const_for_fn)] // false positive
|
276 |
pub fn error_owned(self) -> Error {
|
351 |
#[allow(clippy::missing_const_for_fn)] // cannot test const function
|
352 |
#[test]
|
55 |
/// Absorbed self and return the RNG as owned. It essentially deconstruct the structure.
|
56 |
#[allow(clippy::missing_const_for_fn)] // false positive
|
57 |
pub fn rng_owned(self) -> Rng {
|
368 |
/// Deconstruct the structure ang gives back both methods
|
369 |
#[allow(clippy::missing_const_for_fn)] // false positive
|
370 |
pub fn deconstruct(self) -> (MC1, MC2) {
|
136 |
/// Get the last probably of acceptance of the random change.
|
137 |
#[allow(clippy::missing_const_for_fn)] // false positive
|
138 |
pub fn rng_owned(self) -> Rng {
|
412 |
/// Get the last probably of acceptance of the random change.
|
413 |
#[allow(clippy::missing_const_for_fn)] // false positive
|
414 |
pub fn rng_owned(self) -> Rng {
|
353 |
/// Absorbs self and return the RNG as owned. It essentially deconstruct the structure.
|
354 |
#[allow(clippy::missing_const_for_fn)] // false positive
|
355 |
pub fn rng_owned(self) -> Rng {
|
100 |
/// Get the last probably of acceptance of the random change.
|
101 |
#[allow(clippy::missing_const_for_fn)] // false positive
|
102 |
pub fn rng_owned(self) -> Rng {
|
243 |
/// deconstruct the structure to get back the rng if necessary
|
244 |
#[allow(clippy::missing_const_for_fn)] // false positive
|
245 |
pub fn deconstruct(self) -> (MCD, Rng) {
|
82 |
// see issue #64926 <https://github.com/rust-lang/rust/issues/64926> for more information
|
83 |
#[allow(clippy::missing_const_for_fn)]
|
84 |
extern "C" fn on_error_from_xlib(
|
71 |
// destructors.
|
72 |
#[allow(clippy::missing_const_for_fn)]
|
73 |
pub fn into_tuple(self) -> (String, String)
|
53 |
/// Returns the number of arguments.
|
54 |
#[allow(clippy::missing_const_for_fn)]
|
55 |
pub fn argc(&self) -> usize {
|
53 |
/// object you get here.
|
54 |
#[allow(clippy::missing_const_for_fn)] // FIXME: Drop unsupported.
|
55 |
pub fn close(self) -> Layout {
|
26 |
/// Get the handles's next ID.
|
27 |
#[allow(clippy::missing_const_for_fn)] // FIXME: Drop is unsupported.
|
28 |
pub fn into_next_id(self) -> usize {
|
113 |
/// you get here.
|
114 |
#[allow(clippy::missing_const_for_fn)] // FIXME: Drop is unsupported.
|
115 |
pub fn close(self) -> Run {
|
215 |
#[allow(clippy::missing_const_for_fn)] // FIXME: Drop is unsupported.
|
216 |
impl Value {
|
78 |
impl<T> Default for Elective<T> {
|
79 |
#[allow(clippy::missing_const_for_fn)] // must follow Default::default().
|
80 |
fn default() -> Self {
|
101 |
#[lsp_kind(type = "string")]
|
102 |
#[allow(clippy::missing_const_for_fn)] // #[derive(Clone)] adds function that could be const.
|
103 |
#[derive(Clone, Copy)]
|
47 |
/// ```
|
48 |
#[allow(clippy::missing_const_for_fn)]
|
49 |
pub fn unwrap(self) -> T {
|
62 |
// unwrap not const yet
|
63 |
#[allow(clippy::missing_const_for_fn)]
|
64 |
fn sub_u64(self, x: u64) -> SimpleRational {
|
72 |
/// ```
|
73 |
#[allow(clippy::missing_const_for_fn)] // can't be const because of destructors
|
74 |
pub fn into_vecs(self) -> (Vec<T>, Vec<T>) {
|
24 |
#[allow(clippy::missing_const_for_fn)]
|
25 |
fn unwrap_quadruple<X, Y, Z, W>(
|
1454 |
#[cfg(feature = "test_build")]
|
1455 |
#[allow(clippy::missing_const_for_fn)]
|
1456 |
fn unwrap_triple<X, Y, Z>((a, b, c): (Option<X>, Option<Y>, Option<Z>)) -> (X, Y, Z) {
|
1326 |
// where `k == 0`.
|
1327 |
#[allow(clippy::missing_const_for_fn)]
|
1328 |
fn limbs_div_barrett_approx_is_len(q_len: usize, d_len: usize) -> usize {
|
77 |
/// ```
|
78 |
#[allow(clippy::missing_const_for_fn)]
|
79 |
pub fn unwrap(self) -> T {
|
14 |
#[allow(clippy::missing_const_for_fn)]
|
15 |
fn unwrap_triple<X, Y, Z>((a, b, c): (Option<X>, Option<Y>, Option<Z>)) -> (X, Y, Z) {
|
19 |
#[allow(clippy::missing_const_for_fn)]
|
20 |
fn unwrap_quadruple<X, Y, Z, W>(
|
26 |
#[allow(clippy::missing_const_for_fn)]
|
27 |
fn unwrap_quintuple<X, Y, Z, W, V>(
|
93 |
#[inline]
|
94 |
#[allow(clippy::missing_const_for_fn)]
|
95 |
pub fn into_numerator(self) -> Natural {
|
112 |
#[inline]
|
113 |
#[allow(clippy::missing_const_for_fn)]
|
114 |
pub fn into_denominator(self) -> Natural {
|
138 |
#[inline]
|
139 |
#[allow(clippy::missing_const_for_fn)]
|
140 |
pub fn into_numerator_and_denominator(self) -> (Natural, Natural) {
|
17 |
#[allow(clippy::missing_const_for_fn)]
|
18 |
fn unwrap_triple<X, Y, Z>((a, b, c): (Option<X>, Option<Y>, Option<Z>)) -> (X, Y, Z) {
|
22 |
#[allow(clippy::missing_const_for_fn)]
|
23 |
fn unwrap_quadruple<X, Y, Z, W>(
|
99 |
// Adding `const` causes Rust to complain about not being able to evaluate the destructor at compile-time.
|
100 |
#[allow(clippy::missing_const_for_fn)]
|
101 |
pub fn with_rng<RNG>(self, rng: RNG) -> Configuration<WithRNG<RNG>>
|
111 |
// Adding `const` causes Rust to complain about not being able to evaluate the destructor at compile-time.
|
112 |
#[allow(clippy::missing_const_for_fn)]
|
113 |
pub fn with_environment<ENVIRONMENT>(
|
131 |
// Adding `const` causes Rust to complain about not being able to evaluate the destructor at compile-time.
|
132 |
#[allow(clippy::missing_const_for_fn)]
|
133 |
pub fn with_selection<SELECTION>(
|
149 |
// Adding `const` causes Rust to complain about not being able to evaluate the destructor at compile-time.
|
150 |
#[allow(clippy::missing_const_for_fn)]
|
151 |
pub fn with_recombination<RECOMBINATION>(
|
170 |
// Adding `const` causes Rust to complain about not being able to evaluate the destructor at compile-time.
|
171 |
#[allow(clippy::missing_const_for_fn)]
|
172 |
pub fn with_mutation<MUTATION>(
|
27 |
/// Unwraps this [`Metric`] returning its inner [`prometheus`] metric
|
28 |
#[allow(clippy::missing_const_for_fn)] // false positive: drop
|
29 |
#[must_use]
|
579 |
/// ```
|
580 |
#[allow(clippy::missing_const_for_fn)] // false positive: drop
|
581 |
pub fn with_failure_strategy<F>(self, strategy: F) -> Builder<F, L>
|
1297 |
/// [`metrics::Layer`]: Layer
|
1298 |
#[allow(clippy::missing_const_for_fn)] // false positive: drop
|
1299 |
pub fn with_layer<L>(
|
60 |
// ALLOW false positive: constant functions cannot evaluate destructors
|
61 |
#[allow(clippy::missing_const_for_fn)]
|
62 |
#[must_use]
|
240 |
// ALLOW false positive: constant functions cannot evaluate destructors
|
241 |
#[allow(clippy::missing_const_for_fn)]
|
242 |
#[must_use]
|
79 |
// ALLOW false positive: constant functions cannot evaluate destructors
|
80 |
#[allow(clippy::missing_const_for_fn)]
|
81 |
#[must_use]
|
895 |
/// Instantiate the matcher directly passing the content
|
896 |
#[allow(clippy::missing_const_for_fn)]
|
897 |
pub fn from_bytes(content: Vec<u8>) -> Self {
|
1192 |
///
|
1193 |
#[allow(clippy::missing_const_for_fn)]
|
1194 |
pub fn expect(mut self, hits: usize) -> Self {
|
1333 |
#[allow(clippy::missing_const_for_fn)]
|
1334 |
fn is_local(&self) -> bool {
|
27 |
#[allow(clippy::missing_const_for_fn)]
|
28 |
pub fn is_ok(&self) -> bool {
|
32 |
#[allow(clippy::missing_const_for_fn)]
|
33 |
pub fn is_err(&self) -> bool {
|
37 |
#[allow(clippy::missing_const_for_fn)]
|
38 |
pub fn error(&self) -> Option<&String> {
|
33 |
#[allow(clippy::missing_const_for_fn)]
|
34 |
fn is_missing_hits(&self) -> bool {
|
59 |
impl State {
|
60 |
#[allow(clippy::missing_const_for_fn)]
|
61 |
fn new() -> Self {
|
182 |
// clippy thinks this can be a const fn but the compiler denies it
|
183 |
#[allow(clippy::missing_const_for_fn)]
|
184 |
pub fn information_request_tag(
|
244 |
/// Extracts the inner vector.
|
245 |
#[allow(clippy::missing_const_for_fn)] // ignore due to requirement of #![feature(const_precise_live_drops)]
|
246 |
pub fn into_inner(self) -> Vec<T> {
|
652 |
// See https://github.com/rust-lang/rust-clippy/issues/4979.
|
653 |
#[allow(clippy::missing_const_for_fn)]
|
654 |
pub fn finish(self) -> W {
|
1877 |
// See https://github.com/rust-lang/rust-clippy/issues/4979.
|
1878 |
#[allow(clippy::missing_const_for_fn)]
|
1879 |
pub fn finish(self) -> W {
|
173 |
/// Reverse of [`Self::new`], discards span information and returns an inner error.
|
174 |
#[allow(clippy::missing_const_for_fn)] // ignore due to requirement of #![feature(const_precise_live_drops)]
|
175 |
pub fn into_inner(self) -> E {
|
139 |
#[inline]
|
140 |
#[allow(clippy::missing_const_for_fn)]
|
141 |
unsafe fn from_bytes_with_nul_unchecked(bytes: &[u8]) -> &Self {
|
152 |
#[allow(clippy::borrow_as_ptr)]
|
153 |
#[allow(clippy::missing_const_for_fn)]
|
154 |
// NOTE(Shaohua): const unsafe feature is not available in rustc 1.46 stable.
|
34 |
#[allow(clippy::missing_const_for_fn)]
|
35 |
pub fn with_line_and_offset(position: LinePosition, offset: usize) -> Self {
|
51 |
#[allow(clippy::missing_const_for_fn)]
|
52 |
impl LinePosition {
|
260 |
impl<PropagationResult> ProbeResult<PropagationResult> {
|
261 |
#[allow(clippy::missing_const_for_fn)]
|
262 |
#[allow(clippy::match_like_matches_macro)]
|
271 |
#[allow(clippy::missing_const_for_fn)]
|
272 |
fn unwrap(self) -> PropagationResult {
|
25 |
// False positive
|
26 |
#[allow(clippy::missing_const_for_fn)]
|
27 |
pub fn file_name(mut self, name: String) -> Self {
|
32 |
// False positive
|
33 |
#[allow(clippy::missing_const_for_fn)]
|
34 |
pub fn language(mut self, language: String) -> Self {
|
91 |
#[allow(dead_code)]
|
92 |
#[allow(clippy::missing_const_for_fn)]
|
93 |
fn project_ref<'pin>(
|
56 |
#[allow(dead_code)]
|
57 |
#[allow(clippy::missing_const_for_fn)]
|
58 |
fn project_ref<'pin>(
|
50 |
#[allow(dead_code)]
|
51 |
#[allow(clippy::missing_const_for_fn)]
|
52 |
fn project_ref<'pin>(
|
150 |
#[allow(dead_code)]
|
151 |
#[allow(clippy::missing_const_for_fn)]
|
152 |
fn project_ref<'pin>(
|
73 |
#[allow(dead_code)]
|
74 |
#[allow(clippy::missing_const_for_fn)]
|
75 |
fn project_ref<'pin>(
|
63 |
#[allow(dead_code)]
|
64 |
#[allow(clippy::missing_const_for_fn)]
|
65 |
fn project_ref<'pin>(
|
106 |
#[allow(dead_code)]
|
107 |
#[allow(clippy::missing_const_for_fn)]
|
108 |
fn project_ref<'pin>(
|
46 |
#[allow(dead_code)]
|
47 |
#[allow(clippy::missing_const_for_fn)]
|
48 |
fn project_ref<'pin>(
|
91 |
#[allow(dead_code)]
|
92 |
#[allow(clippy::missing_const_for_fn)]
|
93 |
fn project_ref<'pin>(
|
66 |
#[allow(dead_code)]
|
67 |
#[allow(clippy::missing_const_for_fn)]
|
68 |
fn project_ref<'pin>(
|
325 |
// FIXME: https://github.com/rust-lang/rust-clippy/issues/4979
|
326 |
#[allow(clippy::missing_const_for_fn)]
|
327 |
pub fn into_bytes(self) -> Vec<u8> {
|
5 |
#[allow(clippy::missing_const_for_fn)] // FIXME: false positive
|
6 |
#[inline]
|
40 |
impl FieldPath {
|
41 |
#[allow(clippy::missing_const_for_fn)]
|
42 |
pub fn into_inner(self) -> Utf8PathBuf {
|
187 |
// Destructors can not be run at compile time.
|
188 |
#[allow(clippy::missing_const_for_fn)]
|
189 |
pub fn build(self) -> Diagnostic {
|
248 |
// Destructors can not be run at compile time.
|
249 |
#[allow(clippy::missing_const_for_fn)]
|
250 |
pub fn into_span(self) -> ByteSpan {
|
255 |
// Destructors can not be run at compile time.
|
256 |
#[allow(clippy::missing_const_for_fn)]
|
257 |
pub fn into_value(self) -> T {
|
262 |
// Destructors can not be run at compile time.
|
263 |
#[allow(clippy::missing_const_for_fn)]
|
264 |
pub fn into_inner(self) -> (ByteSpan, T) {
|
715 |
/// Gets the base [`Visitor`].
|
716 |
#[allow(clippy::missing_const_for_fn)]
|
717 |
pub fn into_inner(self) -> V {
|
100 |
#[must_use]
|
101 |
#[allow(clippy::missing_const_for_fn)]
|
102 |
pub fn builder() -> ClientConfigurationBuilder {
|
128 |
#[allow(clippy::missing_const_for_fn)]
|
129 |
impl AuthServer {
|
326 |
#[inline]
|
327 |
#[allow(clippy::missing_const_for_fn)]
|
328 |
pub fn into_reader(self) -> R {
|
252 |
#[allow(clippy::missing_const_for_fn)]
|
253 |
pub fn select(mut self, sel_cols: SelectColumns) -> Config {
|
286 |
/// TODO investigate more stringent checks
|
287 |
#[allow(clippy::missing_const_for_fn)]
|
288 |
fn should_collect_stats(_c: &Container) -> bool { true }
|
17 |
#[must_use]
|
18 |
#[allow(clippy::missing_const_for_fn)]
|
19 |
// we can not make this const yet, because `bound` gets dropped,
|
365 |
#[cfg(not(feature = "serialize"))]
|
366 |
#[allow(clippy::missing_const_for_fn)]
|
367 |
fn build_speed_long_help() -> Option<&'static str> {
|
114 |
#[allow(clippy::missing_const_for_fn)]
|
115 |
fn split_partial_step<O0, O1, A0, A1, F0, F1>(
|
272 |
/// Unwrap into the contained `Continue` value if possible.
|
273 |
#[allow(clippy::missing_const_for_fn)] // not allowed to be const at time of writing
|
274 |
#[inline]
|
282 |
/// Unwrap into the contained `Interrupt` value if possible.
|
283 |
#[allow(clippy::missing_const_for_fn)] // not allowed to be const at time of writing
|
284 |
#[inline]
|
298 |
/// Drop any stored `Continue` state, converting into `PartialSuccessor`.
|
299 |
#[allow(clippy::missing_const_for_fn)] // not allowed to be const at time of writing
|
300 |
#[inline]
|
322 |
/// Partition into a `PartialSuccessor` and the `Continue` state, if any.
|
323 |
#[allow(clippy::missing_const_for_fn)] // not allowed to be const at time of writing
|
324 |
#[inline]
|
363 |
/// Get the inner state of `Continue` and `Interrupt` variants.
|
364 |
#[allow(clippy::missing_const_for_fn)] // not allowed to be const at time of writing
|
365 |
#[inline]
|
108 |
#[inline]
|
109 |
#[allow(clippy::missing_const_for_fn)] // false positive
|
110 |
pub fn try_into_transient<'a>(self) -> Option<TransientStep<'a, O, A, F>> {
|
117 |
/// Convert into the underlying packed [`Tensor`] object.
|
118 |
#[allow(clippy::missing_const_for_fn)] // false positive
|
119 |
#[inline]
|
441 |
/// Any sequences with length less than `n` are reduced to length `0`.
|
442 |
#[allow(clippy::missing_const_for_fn)] // false positive
|
443 |
#[must_use]
|
93 |
/// Convert into the inner tensor.
|
94 |
#[allow(clippy::missing_const_for_fn)] // false positive; cannot run destructors
|
95 |
pub fn into_tensor(self) -> Tensor {
|
251 |
#[allow(clippy::missing_const_for_fn)]
|
252 |
pub(crate) fn with_fill_color(mut self, color: F::Fill) -> Self {
|
700 |
#[allow(clippy::missing_const_for_fn)]
|
701 |
pub(crate) fn with_fill_color(mut self, fill: F::Fill) -> Self {
|
966 |
#[allow(clippy::missing_const_for_fn)]
|
967 |
pub(crate) fn with_fill_color(mut self, fill: F::Fill) -> Self {
|
1155 |
#[allow(clippy::missing_const_for_fn)]
|
1156 |
pub(crate) fn with_fill_color(mut self, fill: F::Fill) -> Self {
|
1492 |
#[must_use]
|
1493 |
#[allow(clippy::missing_const_for_fn)]
|
1494 |
pub unsafe fn with_mask_unchecked(mut self, mask: &'mask Image<crate::BitPixel>) -> Self {
|
100 |
/// Consumes this frame returning the inner image it represents.
|
101 |
#[allow(clippy::missing_const_for_fn)] // can't use destructors with const fn
|
102 |
#[must_use]
|
464 |
#[must_use]
|
465 |
#[allow(clippy::missing_const_for_fn)]
|
466 |
pub fn into_frames(self) -> Vec<Frame<P>> {
|
94 |
#[must_use]
|
95 |
#[allow(clippy::missing_const_for_fn)] // no destructors
|
96 |
pub fn into_inner(self) -> fontdue::Font {
|
242 |
// false positive
|
243 |
#[allow(clippy::missing_const_for_fn)]
|
244 |
pub fn try_unwrap(self) -> Option<G> {
|
137 |
#[allow(clippy::missing_const_for_fn)] // False positive
|
138 |
#[inline(always)]
|
147 |
#[allow(clippy::missing_const_for_fn)] // False positive
|
148 |
#[inline(always)]
|
363 |
#[must_use]
|
364 |
#[allow(clippy::missing_const_for_fn)] // False positive
|
365 |
pub fn rotate_left(self, rhs: usize) -> Self {
|
6 |
#[must_use]
|
7 |
#[allow(clippy::missing_const_for_fn)] // False positive
|
8 |
pub fn checked_div(self, rhs: Self) -> Option<Self> {
|
16 |
#[must_use]
|
17 |
#[allow(clippy::missing_const_for_fn)] // False positive
|
18 |
pub fn checked_rem(self, rhs: Self) -> Option<Self> {
|
110 |
/// Helper function to remove optionally `0x` prefix from hex strings.
|
111 |
#[allow(clippy::missing_const_for_fn)]
|
112 |
fn trim_hex_prefix(str: &str) -> &str {
|
182 |
// Possible drop, can't be const
|
183 |
#[allow(clippy::missing_const_for_fn)]
|
184 |
#[must_use = "Builder pattern"]
|
192 |
// Possible drop, can't be const
|
193 |
#[allow(clippy::missing_const_for_fn)]
|
194 |
#[must_use = "Builder pattern"]
|
202 |
// Possible drop, can't be const
|
203 |
#[allow(clippy::missing_const_for_fn)]
|
204 |
#[must_use = "Builder pattern"]
|
212 |
// Possible drop, can't be const
|
213 |
#[allow(clippy::missing_const_for_fn)]
|
214 |
#[must_use = "Builder pattern"]
|
222 |
// Possible drop, can't be const
|
223 |
#[allow(clippy::missing_const_for_fn)]
|
224 |
#[must_use = "Builder pattern"]
|
79 |
// Self is drop, can't be consumed by const fn
|
80 |
#[allow(clippy::missing_const_for_fn)]
|
81 |
pub(crate) fn unwrap(self) -> T {
|
87 |
// Possible drop
|
88 |
#[allow(clippy::missing_const_for_fn)]
|
89 |
pub fn set_retry(mut self, retry: RetryConfig<'cfg, E>) -> Self {
|
125 |
// Possible drop
|
126 |
#[allow(clippy::missing_const_for_fn)]
|
127 |
pub fn set_retry(mut self, retry: RetryConfig<'cfg, E>) -> Self {
|
24 |
impl LoadingStatus {
|
25 |
#[allow(unreachable_code, clippy::missing_const_for_fn)]
|
26 |
#[inline]
|
145 |
#[must_use]
|
146 |
#[allow(clippy::missing_const_for_fn)]
|
147 |
pub(crate) fn cfgetospeed(termios: &Termios) -> u32 {
|
152 |
#[must_use]
|
153 |
#[allow(clippy::missing_const_for_fn)]
|
154 |
pub(crate) fn cfgetispeed(termios: &Termios) -> u32 {
|
14 |
#[test]
|
15 |
#[allow(clippy::missing_const_for_fn)]
|
16 |
fn test_const_assert() {
|
151 |
/// finish the builder
|
152 |
#[allow(clippy::missing_const_for_fn)] // FIXME: See <https://github.com/rust-lang/rust/issues/73255>
|
153 |
#[inline]
|
106 |
/// Returns the number of elements in the [`Box`].
|
107 |
#[allow(clippy::missing_const_for_fn)] // not usable on min supported Rust
|
108 |
pub(crate) fn len(&self) -> usize {
|
112 |
/// Returns true if the [`Box`] is empty.
|
113 |
#[allow(clippy::missing_const_for_fn)] // not usable on min supported Rust
|
114 |
pub(crate) fn is_empty(&self) -> bool {
|
201 |
/// Returns the number of elements in the [`SecretVec`].
|
202 |
#[allow(clippy::missing_const_for_fn)] // not usable on min supported Rust
|
203 |
pub fn len(&self) -> usize {
|
207 |
/// Returns true if length of the [`SecretVec`] is zero.
|
208 |
#[allow(clippy::missing_const_for_fn)] // not usable on min supported Rust
|
209 |
pub fn is_empty(&self) -> bool {
|
49 |
// TODO: remove when https://github.com/rust-lang/rust-clippy/issues/4979 will be fixed
|
50 |
#[allow(clippy::missing_const_for_fn)]
|
51 |
/// Set headers for this request.
|
317 |
/// * [MDN docs](https://developer.mozilla.org/en-US/docs/Web/API/URL/hash)
|
318 |
#[allow(clippy::missing_const_for_fn)]
|
319 |
pub fn hash(&self) -> Option<&String> {
|
30 |
// @TODO Remove the line below once https://github.com/rust-lang/rust/issues/71835 is resolved.
|
31 |
#[allow(clippy::missing_const_for_fn)]
|
32 |
pub fn new() -> Self {
|
132 |
/// Retrive `key` attached to the `El`
|
133 |
#[allow(clippy::missing_const_for_fn)]
|
134 |
pub fn el_key(&self) -> Option<&ElKey> {
|
191 |
#[allow(clippy::missing_const_for_fn)]
|
192 |
pub fn node_ws(&self) -> Option<&web_sys::Node> {
|
72 |
#[must_use = "`Breadcrumb` doesn't do anything without `Breadcrumb::add`"]
|
73 |
#[allow(clippy::missing_const_for_fn)]
|
74 |
pub fn new(r#type: Option<String>, message: Option<String>) -> Self {
|
97 |
#[must_use = "`Event` doesn't do anything without `Event::capture`"]
|
98 |
#[allow(clippy::missing_const_for_fn)]
|
99 |
pub fn new() -> Self {
|
553 |
#[must_use]
|
554 |
#[allow(clippy::missing_const_for_fn)]
|
555 |
pub fn into_parts(self) -> Parts {
|
55 |
#[must_use]
|
56 |
#[allow(clippy::missing_const_for_fn)]
|
57 |
pub fn new() -> Self {
|
189 |
/// ```
|
190 |
#[allow(clippy::missing_const_for_fn)]
|
191 |
pub fn into_null(self) -> Result<(), Error> {
|
259 |
/// ```
|
260 |
#[allow(clippy::missing_const_for_fn)]
|
261 |
pub fn into_bool(self) -> Result<bool, Error> {
|
329 |
/// ```
|
330 |
#[allow(clippy::missing_const_for_fn)]
|
331 |
pub fn into_int(self) -> Result<i32, Error> {
|
399 |
/// ```
|
400 |
#[allow(clippy::missing_const_for_fn)]
|
401 |
pub fn into_double(self) -> Result<f64, Error> {
|
471 |
/// ```
|
472 |
#[allow(clippy::missing_const_for_fn)]
|
473 |
pub fn into_string(self) -> Result<String, Error> {
|
34 |
#[must_use]
|
35 |
#[allow(clippy::missing_const_for_fn)] // would not provide any benefit
|
36 |
pub fn valid_up_to(&self) -> usize {
|
40 |
#[allow(dead_code)]
|
41 |
#[allow(clippy::missing_const_for_fn)] // clippy is wrong, it cannot really be const
|
42 |
pub(crate) unsafe fn memcpy_unaligned_nonoverlapping_inline_opt_lt_64(
|
109 |
#[cfg(feature = "public_imp")]
|
110 |
#[allow(clippy::missing_const_for_fn)]
|
111 |
#[allow(unused_variables)]
|
177 |
#[cfg(feature = "public_imp")]
|
178 |
#[allow(clippy::missing_const_for_fn)]
|
179 |
#[allow(unused_variables)]
|
278 |
#[inline(always)]
|
279 |
#[allow(clippy::missing_const_for_fn)]
|
280 |
fn num_keys(&self) -> usize {
|
34 |
/// Create a cached embed field from a given embed field and embed ID
|
35 |
#[allow(clippy::missing_const_for_fn)]
|
36 |
#[must_use]
|
191 |
/// Create a cached attachment from a given attachment and message ID
|
192 |
#[allow(clippy::missing_const_for_fn)]
|
193 |
#[must_use]
|
40 |
/// Create a cached role from a given role and guild ID
|
41 |
#[allow(clippy::missing_const_for_fn)]
|
42 |
#[must_use]
|
42 |
/// Create a cached sticker from a given message sticker and message ID
|
43 |
#[allow(clippy::missing_const_for_fn)]
|
44 |
#[must_use]
|
65 |
/// Set the file to log messages to
|
66 |
#[allow(clippy::missing_const_for_fn)]
|
67 |
pub fn set_logging_file(&mut self, logging_file_path: String) {
|
49 |
#[must_use]
|
50 |
#[allow(clippy::missing_const_for_fn)]
|
51 |
pub fn content(mut self, content: String) -> Self {
|
78 |
#[must_use]
|
79 |
#[allow(clippy::missing_const_for_fn)]
|
80 |
pub fn ephemeral(mut self) -> Self {
|
88 |
#[must_use]
|
89 |
#[allow(clippy::missing_const_for_fn)]
|
90 |
pub fn allowed_mentions(mut self, allowed_mentions: Option<AllowedMentions>) -> Self {
|
96 |
#[must_use]
|
97 |
#[allow(clippy::missing_const_for_fn)]
|
98 |
pub fn tts(mut self) -> Self {
|
95 |
#[must_use]
|
96 |
#[allow(clippy::missing_const_for_fn)] //you are WRONG
|
97 |
pub fn task_name(mut self, task_name: String) -> Self {
|
173 |
#[allow(
|
174 |
clippy::missing_const_for_fn,
|
175 |
clippy::unwrap_used,
|
117 |
/// ```
|
118 |
#[allow(clippy::missing_const_for_fn)]
|
119 |
#[inline(always)]
|
144 |
/// ```
|
145 |
#[allow(clippy::missing_const_for_fn)]
|
146 |
#[inline(always)]
|
47 |
impl SvgPath {
|
48 |
#[allow(clippy::missing_const_for_fn)]
|
49 |
pub fn shape(mut self, shape: SvgShape) -> Self {
|
56 |
// false positive: constant functions cannot evaluate destructors
|
57 |
#[allow(clippy::missing_const_for_fn)]
|
58 |
#[must_use]
|
26 |
// https://github.com/rust-lang/rust-clippy/issues/4041
|
27 |
#[allow(clippy::missing_const_for_fn)]
|
28 |
pub(crate) fn new(
|
35 |
impl<C> Command<C> {
|
36 |
#[allow(clippy::missing_const_for_fn)]
|
37 |
pub(crate) fn new(command: String, context: C) -> Self {
|
27 |
// https://github.com/rust-lang/rust-clippy/issues/4041
|
28 |
#[allow(clippy::missing_const_for_fn)]
|
29 |
pub(crate) fn new(bot: Arc<Bot>, inline_query: InlineQuery) -> Self {
|
31 |
// https://github.com/rust-lang/rust-clippy/issues/4041
|
32 |
#[allow(clippy::missing_const_for_fn)]
|
33 |
pub(crate) fn new(bot: Arc<Bot>, query: PreCheckoutQuery) -> Self {
|
25 |
// https://github.com/rust-lang/rust-clippy/issues/4041
|
26 |
#[allow(clippy::missing_const_for_fn)]
|
27 |
pub(crate) fn new(bot: Arc<Bot>, query: shipping::Query) -> Self {
|
56 |
// https://github.com/rust-lang/rust-clippy/issues/4041
|
57 |
#[allow(clippy::missing_const_for_fn)]
|
58 |
pub fn kind(mut self, kind: Kind) -> Self {
|
83 |
/// loop are still kept.
|
84 |
#[allow(clippy::missing_const_for_fn)] // https://github.com/rust-lang/rust-clippy/issues/4979
|
85 |
pub fn into_stateless(self) -> EventLoop {
|
58 |
// https://github.com/rust-lang/rust-clippy/issues/4041
|
59 |
#[allow(clippy::missing_const_for_fn)]
|
60 |
pub(crate) fn new(data: Data, kind: Kind) -> Self {
|
76 |
// https://github.com/rust-lang/rust-clippy/issues/4041
|
77 |
#[allow(clippy::missing_const_for_fn)]
|
78 |
pub(crate) fn split(self) -> (Data, Kind) {
|
11 |
#[allow(clippy::missing_const_for_fn)]
|
12 |
impl<I, O> DataConverter<I, O> {
|
21 |
#[allow(clippy::missing_const_for_fn, unused)]
|
22 |
impl<I> Amplify<I> {
|
15 |
#[allow(clippy::use_self, clippy::missing_const_for_fn, unused)]
|
16 |
impl<I> Done<I> {
|
18 |
#[allow(clippy::use_self, unused, clippy::missing_const_for_fn)]
|
19 |
impl<I, D> SamplesConverter<I, D> {
|
20 |
#[allow(unused, clippy::missing_const_for_fn)]
|
21 |
impl<I> Skippable<I> {
|
18 |
#[allow(unused, clippy::missing_const_for_fn)]
|
19 |
impl<I> Stoppable<I> {
|
295 |
#[allow(clippy::missing_const_for_fn)]
|
296 |
#[inline]
|
84 |
#[allow(clippy::missing_const_for_fn)]
|
85 |
#[inline]
|
90 |
))]
|
91 |
#[allow(unused_variables, clippy::missing_const_for_fn)]
|
92 |
fn tm_to_offset(tm: libc::tm) -> Option<UtcOffset> {
|
85 |
/// move the contents to a `(StatusCode, String)` tuple
|
86 |
#[allow(clippy::missing_const_for_fn)]
|
87 |
fn into_tuple(self) -> (StatusCode, String) {
|
81 |
/// Get the inner type.
|
82 |
#[allow(clippy::missing_const_for_fn)] // false positive
|
83 |
pub fn into_inner(self) -> T {
|
168 |
impl CountsBuilder {
|
169 |
#[allow(clippy::missing_const_for_fn)]
|
170 |
pub fn release(self) -> Vec<sucds::CompactVector> {
|
131 |
// false positive: constant functions cannot evaluate destructors
|
132 |
#[allow(clippy::missing_const_for_fn)]
|
133 |
#[must_use]
|
140 |
// false positive: constant functions cannot evaluate destructors
|
141 |
#[allow(clippy::missing_const_for_fn)]
|
142 |
#[must_use]
|
88 |
/// `'static`
|
89 |
#[allow(clippy::missing_const_for_fn)] // until const_fn stabilized
|
90 |
pub fn new(t: T) -> Self {
|
96 |
/// 'static. Alias for [`State::new`]
|
97 |
#[allow(clippy::missing_const_for_fn)] // until const_fn stabilized
|
98 |
pub fn state<T: Clone + Send + Sync + 'static>(t: T) -> State<T> {
|
234 |
#[allow(clippy::missing_const_for_fn)]
|
235 |
#[must_use]
|
37 |
/// Create a cached embed field from a given embed field and embed ID
|
38 |
#[allow(clippy::missing_const_for_fn)]
|
39 |
#[must_use]
|
192 |
/// Create a cached attachment from a given attachment and message ID
|
193 |
#[allow(clippy::missing_const_for_fn)]
|
194 |
#[must_use]
|
228 |
/// Create a cached message sticker from a given sticker and message ID
|
229 |
#[allow(clippy::missing_const_for_fn)]
|
230 |
#[must_use]
|
35 |
/// Create a cached role from a given role and guild ID
|
36 |
#[allow(clippy::missing_const_for_fn)]
|
37 |
#[must_use]
|
115 |
/// Create a new reference from a `DashMap` reference.
|
116 |
#[allow(clippy::missing_const_for_fn)]
|
117 |
fn new(inner: Ref<'a, K, V>) -> Self {
|
102 |
/// Construct a cached member from its [`twilight_model`] form.
|
103 |
#[allow(clippy::missing_const_for_fn)]
|
104 |
pub(crate) fn from_model(member: Member) -> Self {
|
135 |
// clippy: the contents of `fields` is consumed
|
136 |
#[allow(clippy::missing_const_for_fn, clippy::needless_pass_by_value)]
|
137 |
pub(crate) fn from_interaction_member(
|
56 |
/// Construct a cached message interaction from its [`twilight_model`] form.
|
57 |
#[allow(clippy::missing_const_for_fn)]
|
58 |
pub(crate) fn from_model(message_interaction: MessageInteraction) -> Self {
|
48 |
/// Construct a cached presence from its [`twilight_model`] form.
|
49 |
#[allow(clippy::missing_const_for_fn)]
|
50 |
pub(crate) fn from_model(presence: Presence) -> Self {
|
92 |
/// Construct a cached voice state from its [`twilight_model`] form.
|
93 |
#[allow(clippy::missing_const_for_fn)]
|
94 |
pub(crate) fn from_model(
|
26 |
/// Build into an embed author.
|
27 |
#[allow(clippy::missing_const_for_fn)]
|
28 |
#[must_use = "should be used as part of an embed builder"]
|
50 |
#[allow(clippy::missing_const_for_fn)]
|
51 |
fn _name(mut self, name: String) -> Self {
|
40 |
/// Build into an embed field.
|
41 |
#[allow(clippy::missing_const_for_fn)]
|
42 |
#[must_use = "should be used as part of an embed builder"]
|
34 |
/// Build into an embed footer.
|
35 |
#[allow(clippy::missing_const_for_fn)]
|
36 |
#[must_use = "should be used as part of an embed builder"]
|
251 |
/// This is necessary for sharing a TLS container across configurations.
|
252 |
#[allow(clippy::missing_const_for_fn)]
|
253 |
pub(crate) fn set_tls(&mut self, tls: TlsContainer) {
|
306 |
/// Consume the builder, constructing a shard.
|
307 |
#[allow(clippy::missing_const_for_fn)]
|
308 |
pub fn build(self) -> Config {
|
328 |
/// [`resume_gateway_url`]: twilight_model::gateway::payload::incoming::Ready::resume_gateway_url
|
329 |
#[allow(clippy::missing_const_for_fn)]
|
330 |
pub fn gateway_url(mut self, gateway_url: String) -> Self {
|
358 |
/// ```
|
359 |
#[allow(clippy::missing_const_for_fn)]
|
360 |
pub fn identify_properties(mut self, identify_properties: IdentifyProperties) -> Self {
|
434 |
/// ```
|
435 |
#[allow(clippy::missing_const_for_fn)]
|
436 |
pub fn presence(mut self, presence: UpdatePresencePayload) -> Self {
|
96 |
/// created by [`ClientBuilder::build`].
|
97 |
#[allow(clippy::missing_const_for_fn)]
|
98 |
pub fn ratelimiter(mut self, ratelimiter: Option<Box<dyn Ratelimiter>>) -> Self {
|
78 |
/// Consume the builder, returning the built request.
|
79 |
#[allow(clippy::missing_const_for_fn)]
|
80 |
#[must_use = "request information is not useful on its own and must be acted on"]
|
92 |
/// Set the multipart form.
|
93 |
#[allow(clippy::missing_const_for_fn)]
|
94 |
pub fn form(mut self, form: Form) -> Self {
|
102 |
/// Build the role fields.
|
103 |
#[allow(clippy::missing_const_for_fn)]
|
104 |
pub fn build(self) -> RoleFields {
|
329 |
/// Build the text fields.
|
330 |
#[allow(clippy::missing_const_for_fn)]
|
331 |
pub fn build(self) -> TextFields {
|
501 |
/// Build the voice fields.
|
502 |
#[allow(clippy::missing_const_for_fn)]
|
503 |
pub fn build(self) -> VoiceFields {
|
695 |
/// Build the list of channels.
|
696 |
#[allow(clippy::missing_const_for_fn)]
|
697 |
pub fn build(self) -> Vec<GuildChannelFields> {
|
279 |
/// Consume the ratelimit headers, returning the owned bucket ID.
|
280 |
#[allow(clippy::missing_const_for_fn)]
|
281 |
#[must_use]
|
104 |
/// Consume the deserializer, returning its components.
|
105 |
#[allow(clippy::missing_const_for_fn)]
|
106 |
pub fn into_parts(self) -> (u8, Option<u64>, Option<Cow<'a, str>>) {
|
432 |
/// Consume the error, returning the original event.
|
433 |
#[allow(clippy::missing_const_for_fn)]
|
434 |
pub fn into_event(self) -> Event {
|
199 |
/// ```
|
200 |
#[allow(clippy::missing_const_for_fn)]
|
201 |
pub fn user_id(self, user_id: Id<UserMarker>) -> RequestGuildMembers {
|
69 |
/// Inject a guild ID to create a [`Member`].
|
70 |
#[allow(clippy::missing_const_for_fn)] // false positive
|
71 |
pub fn into_member(self, guild_id: Id<GuildMarker>) -> Member {
|
84 |
/// Consume the builder, returning a [`Command`].
|
85 |
#[allow(clippy::missing_const_for_fn)]
|
86 |
#[must_use = "must be built into a command"]
|
217 |
/// Consume the builder, returning the built command option.
|
218 |
#[allow(clippy::missing_const_for_fn)]
|
219 |
#[must_use = "should be used in a command builder"]
|
301 |
/// Consume the builder, returning the built command option.
|
302 |
#[allow(clippy::missing_const_for_fn)]
|
303 |
#[must_use = "should be used in a command builder"]
|
385 |
/// Consume the builder, returning the built command option.
|
386 |
#[allow(clippy::missing_const_for_fn)]
|
387 |
#[must_use = "should be used in a command builder"]
|
477 |
/// Consume the builder, returning the built command option.
|
478 |
#[allow(clippy::missing_const_for_fn)]
|
479 |
#[must_use = "should be used in a command builder"]
|
26 |
/// Build into an embed author.
|
27 |
#[allow(clippy::missing_const_for_fn)]
|
28 |
#[must_use = "should be used as part of an embed builder"]
|
36 |
/// Build into an embed field.
|
37 |
#[allow(clippy::missing_const_for_fn)]
|
38 |
#[must_use = "should be used as part of an embed builder"]
|
30 |
/// Build into an embed footer.
|
31 |
#[allow(clippy::missing_const_for_fn)]
|
32 |
#[must_use = "should be used as part of an embed builder"]
|
81 |
/// Build this into an embed.
|
82 |
#[allow(clippy::missing_const_for_fn)]
|
83 |
#[must_use = "should be used as part of something like a message"]
|
239 |
/// ```
|
240 |
#[allow(clippy::missing_const_for_fn)]
|
241 |
pub fn image(mut self, image_source: ImageSource) -> Self {
|
48 |
#[allow(clippy::missing_const_for_fn)]
|
49 |
/// All of the path segments following the route to which this request was bound.
|
94 |
#[allow(clippy::missing_const_for_fn)]
|
95 |
pub fn certificate(&self) -> Option<&Certificate> {
|
32 |
#[allow(clippy::missing_const_for_fn)]
|
33 |
pub fn category(&self) -> StatusCategory {
|
20 |
/// Turns this response into a `Result`
|
21 |
#[allow(clippy::missing_const_for_fn)] // False positive, we can't use it because `T` might need to be dropped
|
22 |
pub fn into_result(self) -> Result<ResponseData<T>, ResponseError> {
|
47 |
/// Turns this response into a `Result`
|
48 |
#[allow(clippy::missing_const_for_fn)] // False positive, we can't use it because `T` might need to be dropped
|
49 |
pub fn into_result(self) -> Result<T, ResponseError> {
|
28 |
/// Split this error into its inner status and error data
|
29 |
#[allow(clippy::missing_const_for_fn)]
|
30 |
pub fn split(self) -> (Status, Data) {
|
2207 |
/// [`Handle`].
|
2208 |
#[allow(clippy::missing_const_for_fn)] // Required until we bump the MSRV.
|
2209 |
#[must_use]
|
2235 |
/// Get an array of [`Handles`][Handle] that support the requested protocol.
|
2236 |
#[allow(clippy::missing_const_for_fn)] // Required until we bump the MSRV.
|
2237 |
#[must_use]
|
75 |
/// pointing to other system-specific tables.
|
76 |
#[allow(clippy::missing_const_for_fn)] // Required until we bump the MSRV.
|
77 |
#[must_use]
|
352 |
/// Specify the environment variables to examine instead of [`mod@std::env`].
|
353 |
#[allow(clippy::missing_const_for_fn)]
|
354 |
#[inline]
|
364 |
/// [`LOCALE_VARIABLES`].
|
365 |
#[allow(clippy::missing_const_for_fn)]
|
366 |
#[inline]
|
456 |
/// Specify the environment variables to record.
|
457 |
#[allow(clippy::missing_const_for_fn)]
|
458 |
#[inline]
|
49 |
#[allow(clippy::missing_const_for_fn)]
|
50 |
pub fn build(self) -> Postings {
|
52 |
{
|
53 |
#[allow(clippy::missing_const_for_fn)]
|
54 |
fn increase(self) -> Key<C, <N as Add<typenum::U1>>::Output> {
|
230 |
/// build the sub domain hierarchy.
|
231 |
#[allow(clippy::missing_const_for_fn)] // false positive.
|
232 |
#[must_use]
|
355 |
/// Build the directive set for the given domain.
|
356 |
#[allow(clippy::missing_const_for_fn)] // false positive.
|
357 |
#[must_use]
|
132 |
#[cfg(unix)]
|
133 |
#[allow(clippy::missing_const_for_fn)]
|
134 |
#[must_use]
|
121 |
// false positive: OfflineAudioContext is not const
|
122 |
#[allow(clippy::missing_const_for_fn, clippy::unused_self)]
|
123 |
#[must_use]
|
355 |
/// * For a `BackendSpecificError`
|
356 |
#[allow(clippy::missing_const_for_fn, clippy::unused_self)]
|
357 |
pub fn suspend_sync(&self) {
|
374 |
/// * For a `BackendSpecificError`
|
375 |
#[allow(clippy::missing_const_for_fn, clippy::unused_self)]
|
376 |
pub fn resume_sync(&self) {
|
392 |
/// Will panic when this function is called multiple times
|
393 |
#[allow(clippy::missing_const_for_fn, clippy::unused_self)]
|
394 |
pub fn close_sync(&self) {
|
399 |
/// returns an `WaveShaperRenderer` instance
|
400 |
#[allow(clippy::missing_const_for_fn)]
|
401 |
fn new(config: RendererConfig) -> Self {
|
61 |
#[allow(clippy::missing_const_for_fn)]
|
62 |
pub fn to_point_op(&self) -> PointOp {
|
323 |
/// like if you don't want locking encryption to also lock decryption in a mutex.
|
324 |
#[allow(clippy::missing_const_for_fn)] // Clippy does not consider `self` arg
|
325 |
pub fn split(self) -> (EncrypterHalf, DecrypterHalf) {
|
324 |
/// like if you don't want locking encryption to also lock decryption in a mutex.
|
325 |
#[allow(clippy::missing_const_for_fn)] // Clippy does not consider `self` arg
|
326 |
pub fn split(self) -> (EncrypterHalf, DecrypterHalf) {
|
242 |
/// like if you don't want locking encryption to also lock decryption in a mutex.
|
243 |
#[allow(clippy::missing_const_for_fn)] // Clippy does not consider `self` arg
|
244 |
pub fn split(self) -> (ClientEncrypterHalf, ClientDecrypterHalf) {
|
355 |
/// like if you don't want locking encryption to also lock decryption in a mutex.
|
356 |
#[allow(clippy::missing_const_for_fn)] // Clippy does not consider `self` arg
|
357 |
pub fn split(self) -> (ServerEncrypterHalf, ServerDecrypterHalf) {
|
166 |
clippy::checked_conversions,
|
167 |
clippy::missing_const_for_fn,
|
168 |
clippy::missing_panics_doc
|
367 |
/// Obtains the inner `Read`er contained by `self`
|
368 |
#[allow(clippy::missing_const_for_fn)]
|
369 |
pub fn into_inner(self) -> R {
|
575 |
/// Obtains the inner `Seek`er contained by `self`
|
576 |
#[allow(clippy::missing_const_for_fn)]
|
577 |
pub fn into_inner(self) -> S {
|
780 |
/// Obtains the inner `ReadSeek`er contained by `self`\
|
781 |
#[allow(clippy::missing_const_for_fn)]
|
782 |
pub fn into_inner(self) -> T {
|
1014 |
/// Returns the value contained within `self`.
|
1015 |
#[allow(clippy::missing_const_for_fn)]
|
1016 |
pub fn into_inner(self) -> W {
|
72 |
/// panics if self is `None`
|
73 |
#[allow(clippy::missing_const_for_fn)]
|
74 |
#[track_caller]
|
82 |
#[allow(clippy::missing_const_for_fn)]
|
83 |
/// Unwraps self into a value of type `T` if it is `Some`.
|
95 |
#[allow(clippy::missing_const_for_fn)]
|
96 |
/// Unwraps self into a value of type `T` if it is `Some`, or returns the default value otherwise.
|
104 |
/// Unwraps self into a value of type `T` if it is `Some`, or returns the result of calling `op` otherwise.
|
105 |
#[allow(clippy::missing_const_for_fn)]
|
106 |
pub fn unwrap_or_else<F: FnOnce() -> T>(self, op: F) -> T {
|
88 |
#[no_mangle]
|
89 |
#[allow(clippy::missing_const_for_fn)] // const extern fn is unstable
|
90 |
pub extern "C" fn xlang_get_version() -> StringView<'static> {
|
56 |
// see issue #64926 <https://github.com/rust-lang/rust/issues/64926> for more information.
|
57 |
#[allow(clippy::missing_const_for_fn)]
|
58 |
pub extern "C" fn on_error_from_xlib(_: *mut xlib::Display, er: *mut xlib::XErrorEvent) -> c_int {
|
194 |
#[inline]
|
195 |
#[allow(clippy::missing_const_for_fn)]
|
196 |
pub fn is_rising(&self) -> bool {
|
202 |
#[inline]
|
203 |
#[allow(clippy::missing_const_for_fn)]
|
204 |
pub fn is_falling(&self) -> bool {
|
111 |
/// `open_at` are set. Only one of the other can be set.
|
112 |
#[allow(clippy::too_many_arguments, clippy::missing_const_for_fn)]
|
113 |
pub fn new(
|
3 |
//! channel types.
|
4 |
#![allow(clippy::missing_const_for_fn)]
|
1 |
#![allow(clippy::missing_const_for_fn)]
|
1 |
#![allow(clippy::missing_const_for_fn)]
|
1 |
#![allow(clippy::missing_const_for_fn)]
|
9 |
#![allow(clippy::module_name_repetitions)]
|
10 |
#![allow(clippy::missing_const_for_fn)]
|
11 |
#![warn(clippy::clone_on_ref_ptr)]
|
63 |
mod intrinsics {
|
64 |
#![allow(clippy::missing_const_for_fn, clippy::inline_always)]
|
1 |
#![allow(clippy::missing_const_for_fn)]
|
2 |
use crate::Error;
|
170 |
#![allow(clippy::use_self)]
|
171 |
#![allow(clippy::missing_const_for_fn)]
|
172 |
#![allow(clippy::needless_borrow)]
|
1 |
#![warn(clippy::pedantic, clippy::nursery)]
|
2 |
#![allow(clippy::use_self, clippy::missing_const_for_fn)] // not 100% reliable
|
3 |
clippy::unused_self,
|
4 |
clippy::missing_const_for_fn, // TODO: Remove when #![feature(const_precise_live_drops)] gets stabilized
|
5 |
clippy::struct_excessive_bools
|
13 |
#![allow(
|
14 |
clippy::missing_const_for_fn,
|
15 |
clippy::cast_precision_loss,
|
13 |
#![allow(
|
14 |
clippy::missing_const_for_fn,
|
15 |
clippy::cast_precision_loss,
|
23 |
#![allow(clippy::forget_non_drop)]
|
24 |
#![allow(clippy::missing_const_for_fn)]
|
148 |
#![warn(clippy::all, clippy::pedantic, clippy::nursery, rust_2018_idioms)]
|
149 |
#![allow(clippy::missing_const_for_fn)]
|
150 |
#![forbid(unsafe_code)]
|
8 |
clippy::wildcard_imports,
|
9 |
clippy::missing_const_for_fn,
|
10 |
clippy::wrong_self_convention,
|
47 |
clippy::missing_errors_doc,
|
48 |
clippy::missing_const_for_fn,
|
49 |
clippy::used_underscore_binding,
|
21 |
clippy::future_not_send,
|
22 |
clippy::missing_const_for_fn,
|
23 |
clippy::match_wildcard_for_single_variants,
|
84 |
clippy::must_use_candidate,
|
85 |
clippy::missing_const_for_fn,
|
86 |
clippy::missing_errors_doc
|
10 |
clippy::module_name_repetitions,
|
11 |
clippy::missing_const_for_fn,
|
12 |
clippy::return_self_not_must_use
|
19 |
//!
|
20 |
#![allow(clippy::missing_const_for_fn)]
|
21 |
#![allow(clippy::module_name_repetitions)]
|
20 |
)]
|
21 |
#![allow(clippy::missing_const_for_fn, clippy::use_self, dead_code)]
|
7 |
//!
|
8 |
#![allow(clippy::missing_const_for_fn)]
|
9 |
use regex::RegexSet;
|
4 |
#![warn(clippy::nursery)]
|
5 |
#![allow(clippy::missing_const_for_fn)]
|
6 |
#![feature(test)]
|
4 |
#![warn(clippy::nursery)]
|
5 |
#![allow(clippy::missing_const_for_fn)]
|
6 |
#![feature(concat_idents)]
|
43 |
#![allow(
|
44 |
clippy::missing_const_for_fn,
|
45 |
clippy::must_use_candidate,
|
23 |
#![allow(
|
24 |
clippy::missing_const_for_fn, // seems to produce false positives
|
25 |
clippy::missing_errors_doc,
|
20 |
clippy::missing_inline_in_public_items,
|
21 |
clippy::missing_const_for_fn,
|
22 |
clippy::op_ref,
|
8 |
clippy::uninlined_format_args,
|
9 |
clippy::missing_const_for_fn,
|
10 |
)]
|
13 |
#![allow(clippy::match_same_arms)]
|
14 |
#![allow(clippy::missing_const_for_fn)]
|
15 |
#![allow(clippy::missing_errors_doc)]
|
93 |
// Too much work to fix.
|
94 |
clippy::missing_errors_doc, clippy::missing_const_for_fn
|
95 |
)]
|
129 |
// Too much work to fix.
|
130 |
clippy::missing_errors_doc, clippy::missing_const_for_fn
|
131 |
)]
|
38 |
// Too much work to fix.
|
39 |
clippy::missing_errors_doc, clippy::missing_const_for_fn
|
40 |
)]
|
77 |
// Too much work to fix.
|
78 |
clippy::missing_errors_doc, clippy::missing_const_for_fn,
|
79 |
// False positive: WebSocket
|
53 |
// Too much work to fix.
|
54 |
clippy::missing_errors_doc, clippy::missing_const_for_fn
|
55 |
)]
|
158 |
// Too much work to fix.
|
159 |
clippy::missing_errors_doc, clippy::missing_const_for_fn
|
160 |
)]
|
51 |
// Too much work to fix.
|
52 |
clippy::missing_errors_doc, clippy::missing_const_for_fn
|
53 |
)]
|
53 |
// Too much work to fix.
|
54 |
clippy::missing_errors_doc, clippy::missing_const_for_fn
|
55 |
)]
|
318 |
// Too much work to fix.
|
319 |
clippy::missing_errors_doc, clippy::missing_const_for_fn
|
320 |
)]
|
144 |
// Too much work to fix.
|
145 |
clippy::missing_errors_doc, clippy::missing_const_for_fn
|
146 |
)]
|
110 |
// Too much work to fix.
|
111 |
clippy::missing_errors_doc, clippy::missing_const_for_fn
|
112 |
)]
|
114 |
// Too much work to fix.
|
115 |
clippy::missing_errors_doc, clippy::missing_const_for_fn
|
116 |
)]
|
40 |
clippy::cast_precision_loss,
|
41 |
clippy::missing_const_for_fn,
|
42 |
clippy::use_self,
|
98 |
#![allow(clippy::wildcard_imports)]
|
99 |
#![allow(clippy::missing_const_for_fn)]
|
100 |
#![allow(clippy::shadow_unrelated)] // Does not work correctly.
|
8 |
// isn't possible with const)
|
9 |
#![allow(clippy::missing_const_for_fn)]
|
8 |
// isn't possible with const)
|
9 |
#![allow(clippy::missing_const_for_fn)]
|
10 |
use std::marker::PhantomData;
|
3 |
clippy::large_enum_variant,
|
4 |
clippy::missing_const_for_fn,
|
5 |
clippy::missing_errors_doc,
|
118 |
#![allow(clippy::must_use_candidate)]
|
119 |
#![allow(clippy::missing_const_for_fn)]
|
22 |
// high number of false positives on nightly (as of Oct 2022 with 1.66.0-nightly)
|
23 |
#![allow(clippy::missing_const_for_fn)]
|
61 |
clippy::missing_errors_doc,
|
62 |
clippy::missing_const_for_fn,
|
63 |
clippy::multiple_crate_versions,
|
61 |
clippy::missing_errors_doc,
|
62 |
clippy::missing_const_for_fn,
|
63 |
clippy::multiple_crate_versions,
|
43 |
clippy::borrowed_box,
|
44 |
clippy::missing_const_for_fn,
|
45 |
clippy::too_many_lines
|
79 |
#![allow(clippy::use_self)]
|
80 |
#![allow(clippy::missing_const_for_fn)]
|
6 |
#![warn(clippy::pedantic, clippy::nursery)]
|
7 |
#![allow(clippy::missing_const_for_fn)]
|
8 |
use std::{
|
104 |
// Too much work to fix.
|
105 |
clippy::missing_errors_doc, clippy::missing_const_for_fn, clippy::missing_panics_doc,
|
106 |
// Seems should be fixed in `thiserror` crate.
|
103 |
// Too much work to fix.
|
104 |
clippy::missing_errors_doc, clippy::missing_const_for_fn, clippy::missing_panics_doc,
|
105 |
// Seems should be fixed in `thiserror` crate.
|
42 |
clippy::map_err_ignore,
|
43 |
clippy::missing_const_for_fn,
|
44 |
clippy::missing_errors_doc,
|
42 |
clippy::map_err_ignore,
|
43 |
clippy::missing_const_for_fn,
|
44 |
clippy::missing_errors_doc,
|
41 |
#![allow(clippy::cognitive_complexity)]
|
42 |
#![allow(clippy::missing_const_for_fn)]
|
43 |
#![allow(clippy::similar_names)]
|
160 |
#![allow(clippy::must_use_candidate)]
|
161 |
#![allow(clippy::missing_const_for_fn)]
|
162 |
#![allow(clippy::option_if_let_else)] // Semantically backwards when used with non-zero error codes
|
1 |
#![allow(clippy::missing_const_for_fn)]
|
2 |
#![allow(clippy::use_self)]
|
50 |
)]
|
51 |
#![allow(clippy::missing_const_for_fn)]
|
21 |
)]
|
22 |
#![allow(clippy::missing_const_for_fn, clippy::use_self)]
|
244 |
clippy::future_not_send,
|
245 |
clippy::missing_const_for_fn,
|
246 |
clippy::type_complexity,
|
53 |
#![allow(clippy::cognitive_complexity)]
|
54 |
#![allow(clippy::missing_const_for_fn)]
|
55 |
#![allow(clippy::similar_names)]
|
11 |
clippy::match_same_arms,
|
12 |
clippy::missing_const_for_fn,
|
13 |
clippy::missing_panics_doc,
|
43 |
impl ClientConfigurationBuilder {
|
44 |
#![allow(clippy::missing_const_for_fn)]
|
1 |
#![allow(clippy::missing_const_for_fn)]
|
2 |
#![allow(clippy::cognitive_complexity)]
|
20 |
// const extern fns are unstable
|
21 |
#![allow(clippy::missing_const_for_fn)]
|
6 |
#![allow(clippy::cognitive_complexity)]
|
7 |
#![allow(clippy::missing_const_for_fn)]
|
8 |
#![allow(clippy::similar_names)]
|
6 |
#![allow(clippy::cognitive_complexity)]
|
7 |
#![allow(clippy::missing_const_for_fn)]
|
8 |
#![allow(clippy::similar_names)]
|
6 |
#![allow(clippy::cognitive_complexity)]
|
7 |
#![allow(clippy::missing_const_for_fn)]
|
8 |
#![allow(clippy::similar_names)]
|
19 |
clippy::missing_errors_doc,
|
20 |
clippy::missing_const_for_fn
|
21 |
)]
|
2 |
#![allow(clippy::wildcard_imports)]
|
3 |
#![allow(clippy::missing_const_for_fn)]
|
4 |
use crate::*;
|
37 |
pub fn overlap(self) -> Option<Window<Overlap<S, D>>> {
|
38 |
#![allow(clippy::missing_const_for_fn)] // false positive
|
39 |
match self {
|
1 |
// TODO: Forward `const fn` as `const fn`.
|
2 |
#![allow(clippy::missing_const_for_fn)]
|
9 |
#![warn(missing_docs)] // uncomment for docs
|
10 |
#![allow(clippy::missing_const_for_fn)]
|
11 |
mod console;
|
9 |
#![allow(clippy::missing_errors_doc)]
|
10 |
#![allow(clippy::missing_const_for_fn)]
|
11 |
#![cfg_attr(not(any(test, feature = "std")), no_std)]
|
10 |
clippy::non_ascii_literal,
|
11 |
clippy::missing_const_for_fn,
|
12 |
clippy::use_self
|
10 |
clippy::non_ascii_literal,
|
11 |
clippy::missing_const_for_fn
|
12 |
)]
|
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(
|
5 |
#![allow(clippy::match_same_arms)]
|
6 |
#![allow(clippy::missing_const_for_fn)]
|
7 |
#![allow(clippy::multiple_crate_versions)]
|
71 |
#![allow(clippy::cognitive_complexity)]
|
72 |
#![allow(clippy::missing_const_for_fn)]
|
73 |
#![allow(clippy::similar_names)]
|
3 |
#![allow(clippy::missing_const_for_fn)]
|
31 |
#![allow(
|
32 |
clippy::missing_const_for_fn, // useless in proc macro
|
33 |
clippy::redundant_pub_crate, // suggests bad style
|
40 |
clippy::inline_always,
|
41 |
clippy::missing_const_for_fn,
|
42 |
clippy::missing_errors_doc,
|
146 |
#![warn(clippy::nursery)]
|
147 |
#![allow(clippy::missing_const_for_fn)]
|
148 |
#![allow(clippy::multiple_crate_versions)]
|
5 |
clippy::option_if_let_else,
|
6 |
clippy::missing_const_for_fn,
|
7 |
clippy::cast_possible_truncation,
|
4 |
clippy::option_if_let_else,
|
5 |
clippy::missing_const_for_fn,
|
6 |
clippy::cast_precision_loss,
|
19 |
#![allow(clippy::cognitive_complexity)]
|
20 |
#![allow(clippy::missing_const_for_fn)]
|
21 |
#![allow(clippy::similar_names)]
|
6 |
#![allow(clippy::cognitive_complexity)]
|
7 |
#![allow(clippy::missing_const_for_fn)]
|
8 |
#![allow(clippy::similar_names)]
|
6 |
#![allow(clippy::cognitive_complexity)]
|
7 |
#![allow(clippy::missing_const_for_fn)]
|
8 |
#![allow(clippy::similar_names)]
|
1 |
#![allow(
|
2 |
clippy::missing_const_for_fn,
|
3 |
clippy::redundant_pub_crate,
|
106 |
#![allow(
|
107 |
clippy::missing_const_for_fn,
|
108 |
// clippy::missing_panics_doc,
|
8 |
#![allow(
|
9 |
clippy::missing_const_for_fn,
|
10 |
clippy::missing_panics_doc,
|
30 |
//
|
31 |
#![allow(clippy::missing_const_for_fn)] // see https://github.com/rust-lang/rust-clippy/issues/9271
|
54 |
//
|
55 |
#![allow(clippy::missing_const_for_fn)] // see https://github.com/rust-lang/rust-clippy/issues/9271
|
41 |
#![allow(clippy::cognitive_complexity)]
|
42 |
#![allow(clippy::missing_const_for_fn)]
|
43 |
#![allow(clippy::similar_names)]
|
1 |
#![deny(rust_2018_idioms)]
|
2 |
#![allow(clippy::missing_const_for_fn, clippy::future_not_send)]
|
97 |
clippy::upper_case_acronyms,
|
98 |
clippy::missing_const_for_fn,
|
99 |
clippy::clone_on_copy
|
4 |
clippy::needless_borrow,
|
5 |
clippy::missing_const_for_fn,
|
6 |
clippy::type_repetition_in_bounds
|
83 |
#![allow(
|
84 |
clippy::missing_const_for_fn,
|
85 |
clippy::missing_errors_doc,
|
97 |
#![allow(clippy::module_name_repetitions)]
|
98 |
#![allow(clippy::missing_const_for_fn)]
|
99 |
#![allow(clippy::derive_partial_eq_without_eq)]
|