• abi_stable 0.11.1/src/std_types/arc/test.rs
    5
    #[allow(clippy::redundant_allocation)]
    6
    fn _covariant_arc<'a: 'b, 'b, T>(foo: Arc<&'a T>) -> Arc<&'b T> {
  • abi_stable 0.11.1/src/std_types/boxed/test.rs
    7
    #[allow(clippy::redundant_allocation)]
    8
    fn _covariant_box<'a: 'b, 'b, T>(foo: Box<&'a T>) -> Box<&'b T> {
  • av-decoder 0.1.1/src/lib.rs
    55
    pub struct AvContext<T: ?Sized> {
    56
        #[allow(clippy::redundant_allocation)]
    57
        _stream: Box<Box<T>>,
  • cbe-metrics 1.15.0/src/lib.rs
    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>);
  • engineio-rs 0.1.5/src/transports/mod.rs
    76
        #[allow(clippy::redundant_allocation)]
    77
        pub fn as_pin_box(&mut self) -> std::pin::Pin<Box<&mut (dyn Transport + Send)>> {
  • ferrisetw 1.0.0/src/trace.rs
    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;
  • fvm 3.0.0-alpha.21/src/kernel/blocks.rs
    39
        // copy the bytes. So we accept some indirection for reliable performance.
    40
        #[allow(clippy::redundant_allocation)]
    41
        data: Rc<Box<[u8]>>,
  • gemachain-metrics 1.8.2/src/lib.rs
    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>);
  • holochain_types 0.1.0/src/dna/wasm.rs
    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]>> {
  • icu_provider 1.1.0/src/response.rs
    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]>>);
  • ioc 0.12.0/src/async.rs
    146
        creation_fn: CreationFn<T>,
    147
        #[allow(clippy::redundant_allocation)]
    148
        instance: futures::lock::Mutex<Option<Arc<Box<T>>>>,
  • ioc 0.12.0/src/lib.rs
    151
        creation_fn: CreationFn<T>,
    152
        #[allow(clippy::redundant_allocation)]
    153
        instance: OnceCell<Arc<Box<T>>>,
  • microvmi 0.3.11/src/capi/mod.rs
    199
    #[allow(clippy::redundant_allocation)]
    200
    unsafe fn get_driver_box(context: *mut c_void) -> Box<Box<dyn Introspectable>> {
  • ouroboros_examples 0.15.5/src/lib.rs
    18
    #[self_referencing()]
    19
    #[allow(clippy::redundant_allocation)]
    20
    /// A chain of references, where c references b which references a.
  • pen-ffi 0.10.8/src/any.rs
    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)]
  • photondb 0.0.4/src/page_store/version.rs
    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) {
  • quad-compat-rhai 1.4.0/src/types/dynamic.rs
    195
        /// Any type as a trait object.
    196
        #[allow(clippy::redundant_allocation)]
    197
        Variant(Box<Box<dyn Variant>>, Tag, AccessMode),
  • range-lock 0.2.3/src/rangelock.rs
    199
        /// The &mut suppresses Sync and the Rc suppresses Send.
    200
        #[allow(clippy::redundant_allocation)]
    201
        _p: PhantomData<Rc<&'a mut T>>,
  • range-lock 0.2.3/src/reprangelock.rs
    269
        /// The &mut suppresses Sync and the Rc suppresses Send.
    270
        #[allow(clippy::redundant_allocation)]
    271
        _p: PhantomData<Rc<&'a mut T>>,
  • safecoin-metrics 1.14.3/src/lib.rs
    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>);
  • sea-orm 0.10.7/src/entity/column.rs
    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 {
  • solana-metrics 1.14.13/src/lib.rs
    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>);
  • sycamore-core 0.8.2/src/view.rs
    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>]>>),
  • tarantool 0.6.4/src/net_box/inner.rs
    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 {
  • tarantool 0.6.4/src/network/client/inner.rs
    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 {
  • tmkms 0.12.2/src/keyring/ecdsa.rs
    13
    #[allow(clippy::redundant_allocation)]
  • tmkms 0.12.2/src/keyring/ed25519.rs
    13
    #[allow(clippy::redundant_allocation)]
  • waffles-solana-metrics 1.15.0/src/lib.rs
    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>);
  • intermodal-rs 0.0.4/src/image/docker/transport.rs
    1
    #![allow(clippy::redundant_allocation)]
  • log-reroute 0.1.8/src/lib.rs
    5
    // Arc<S: Sized>, so we don't have much choice in that matter.
    6
    #![allow(clippy::redundant_allocation)]
  • pravega-client 0.3.2/src/lib.rs
    29
    #![recursion_limit = "1024"]
    30
    #![allow(clippy::redundant_allocation)]
  • ruma 0.7.4/tests/outgoing.rs
    5
    #![allow(clippy::exhaustive_structs, clippy::redundant_allocation)]
  • swc_ecma_transforms_react 0.160.8/src/jsx/mod.rs
    1
    #![allow(clippy::redundant_allocation)]