5 |
#[allow(clippy::redundant_allocation)]
|
6 |
fn _covariant_arc<'a: 'b, 'b, T>(foo: Arc<&'a T>) -> Arc<&'b T> {
|
7 |
#[allow(clippy::redundant_allocation)]
|
8 |
fn _covariant_box<'a: 'b, 'b, T>(foo: Box<&'a T>) -> Box<&'b T> {
|
55 |
pub struct AvContext<T: ?Sized> {
|
56 |
#[allow(clippy::redundant_allocation)]
|
57 |
_stream: Box<Box<T>>,
|
30 |
/// A helper that sends the count of created tokens as a datapoint.
|
31 |
#[allow(clippy::redundant_allocation)]
|
32 |
pub struct TokenCounter(Arc<&'static str>);
|
51 |
/// A token for `TokenCounter`.
|
52 |
#[allow(clippy::redundant_allocation)]
|
53 |
pub struct CounterToken(Arc<&'static str>);
|
76 |
#[allow(clippy::redundant_allocation)]
|
77 |
pub fn as_pin_box(&mut self) -> std::pin::Pin<Box<&mut (dyn Transport + Send)>> {
|
166 |
#[derive(Debug)]
|
167 |
#[allow(clippy::redundant_allocation)] // see https://github.com/n4r1b/ferrisetw/issues/72
|
168 |
pub struct UserTrace {
|
181 |
#[derive(Debug)]
|
182 |
#[allow(clippy::redundant_allocation)] // see https://github.com/n4r1b/ferrisetw/issues/72
|
183 |
pub struct KernelTrace {
|
259 |
const TRACE_KIND: TraceKind;
|
260 |
#[allow(clippy::redundant_allocation)] // Being Boxed is really important, let's keep the Box<...> in the function signature to make the intent clearer (see https://github.com/n4r1b/ferrisetw/issues/72)
|
261 |
fn build(properties: EventTraceProperties, control_handle: ControlHandle, trace_handle: TraceHandle, callback_data: Box<Arc<CallbackData>>) -> Self;
|
39 |
// copy the bytes. So we accept some indirection for reliable performance.
|
40 |
#[allow(clippy::redundant_allocation)]
|
41 |
data: Rc<Box<[u8]>>,
|
9 |
/// A helper that sends the count of created tokens as a datapoint.
|
10 |
#[allow(clippy::redundant_allocation)]
|
11 |
pub struct TokenCounter(Arc<&'static str>);
|
30 |
/// A token for `TokenCounter`.
|
31 |
#[allow(clippy::redundant_allocation)]
|
32 |
pub struct CounterToken(Arc<&'static str>);
|
18 |
/// the wasm bytes from a .wasm file
|
19 |
#[allow(clippy::redundant_allocation)]
|
20 |
pub code: Arc<Box<[u8]>>,
|
77 |
/// get a new Arc to the `Vec<u8>` bytes for the wasm
|
78 |
#[allow(clippy::redundant_allocation)]
|
79 |
pub fn code(&self) -> Arc<Box<[u8]>> {
|
82 |
#[derive(Clone)]
|
83 |
#[allow(clippy::redundant_allocation)] // false positive, it's cheaper to wrap an existing Box in an Rc than to reallocate a huge Rc
|
84 |
pub struct Cart(SelectedRc<Box<[u8]>>);
|
146 |
creation_fn: CreationFn<T>,
|
147 |
#[allow(clippy::redundant_allocation)]
|
148 |
instance: futures::lock::Mutex<Option<Arc<Box<T>>>>,
|
151 |
creation_fn: CreationFn<T>,
|
152 |
#[allow(clippy::redundant_allocation)]
|
153 |
instance: OnceCell<Arc<Box<T>>>,
|
199 |
#[allow(clippy::redundant_allocation)]
|
200 |
unsafe fn get_driver_box(context: *mut c_void) -> Box<Box<dyn Introspectable>> {
|
18 |
#[self_referencing()]
|
19 |
#[allow(clippy::redundant_allocation)]
|
20 |
/// A chain of references, where c references b which references a.
|
153 |
#[pen_ffi_macro::any(crate = "crate")]
|
154 |
#[allow(clippy::redundant_allocation)]
|
155 |
#[derive(Clone)]
|
199 |
#[pen_ffi_macro::any(crate = "crate")]
|
200 |
#[allow(clippy::redundant_allocation)]
|
201 |
#[derive(Clone)]
|
111 |
/// Panic if there has already exists a version.
|
112 |
#[allow(clippy::redundant_allocation)]
|
113 |
fn switch_version(&self, next: Box<Arc<Version>>, guard: Guard) {
|
195 |
/// Any type as a trait object.
|
196 |
#[allow(clippy::redundant_allocation)]
|
197 |
Variant(Box<Box<dyn Variant>>, Tag, AccessMode),
|
199 |
/// The &mut suppresses Sync and the Rc suppresses Send.
|
200 |
#[allow(clippy::redundant_allocation)]
|
201 |
_p: PhantomData<Rc<&'a mut T>>,
|
269 |
/// The &mut suppresses Sync and the Rc suppresses Send.
|
270 |
#[allow(clippy::redundant_allocation)]
|
271 |
_p: PhantomData<Rc<&'a mut T>>,
|
30 |
/// A helper that sends the count of created tokens as a datapoint.
|
31 |
#[allow(clippy::redundant_allocation)]
|
32 |
pub struct TokenCounter(Arc<&'static str>);
|
51 |
/// A token for `TokenCounter`.
|
52 |
#[allow(clippy::redundant_allocation)]
|
53 |
pub struct CounterToken(Arc<&'static str>);
|
458 |
fn from(column_type: sea_query::ColumnType) -> Self {
|
459 |
#[allow(clippy::redundant_allocation)]
|
460 |
fn convert_column_type(column_type: &sea_query::ColumnType) -> ColumnType {
|
30 |
/// A helper that sends the count of created tokens as a datapoint.
|
31 |
#[allow(clippy::redundant_allocation)]
|
32 |
pub struct TokenCounter(Arc<&'static str>);
|
51 |
/// A token for `TokenCounter`.
|
52 |
#[allow(clippy::redundant_allocation)]
|
53 |
pub struct CounterToken(Arc<&'static str>);
|
20 |
/// A fragment (aka. list) of [`View`]s.
|
21 |
#[allow(clippy::redundant_allocation)] // Cannot create a `Rc<[T]>` directly.
|
22 |
Fragment(Rc<Box<[View<G>]>>),
|
395 |
#[allow(clippy::redundant_allocation, clippy::boxed_local)]
|
396 |
fn send_worker(conn: Box<Weak<ConnInner>>) -> i32 {
|
425 |
#[allow(clippy::redundant_allocation, clippy::boxed_local)]
|
426 |
fn recv_worker(conn: Box<Weak<ConnInner>>) -> i32 {
|
367 |
#[allow(clippy::redundant_allocation, clippy::boxed_local)]
|
368 |
fn send_worker(conn: Box<Weak<ConnInner>>) -> i32 {
|
397 |
#[allow(clippy::redundant_allocation, clippy::boxed_local)]
|
398 |
fn recv_worker(conn: Box<Weak<ConnInner>>) -> i32 {
|
13 |
#[allow(clippy::redundant_allocation)]
|
13 |
#[allow(clippy::redundant_allocation)]
|
30 |
/// A helper that sends the count of created tokens as a datapoint.
|
31 |
#[allow(clippy::redundant_allocation)]
|
32 |
pub struct TokenCounter(Arc<&'static str>);
|
51 |
/// A token for `TokenCounter`.
|
52 |
#[allow(clippy::redundant_allocation)]
|
53 |
pub struct CounterToken(Arc<&'static str>);
|
1 |
#![allow(clippy::redundant_allocation)]
|
5 |
// Arc<S: Sized>, so we don't have much choice in that matter.
|
6 |
#![allow(clippy::redundant_allocation)]
|
29 |
#![recursion_limit = "1024"]
|
30 |
#![allow(clippy::redundant_allocation)]
|
5 |
#![allow(clippy::exhaustive_structs, clippy::redundant_allocation)]
|
1 |
#![allow(clippy::redundant_allocation)]
|