• actix-web-security 0.1.0/src/authentication/mod.rs
    29
        #[allow(clippy::borrowed_box)]
    30
        pub async fn authenticate(
  • actix-web-security 0.1.0/src/authentication/scheme/authentication_provider.rs
    12
    pub trait AuthenticationProvider: AuthenticationProviderClone {
    13
        #[allow(clippy::borrowed_box)]
    14
        async fn authenticate(
  • actix-web-security 0.1.0/src/authentication/scheme/basic/authentication_provider.rs
    31
    impl AuthenticationProvider for BasicAuthenticationProvider {
    32
        #[allow(clippy::borrowed_box)]
    33
        async fn authenticate(
  • actix-web-security 0.1.0/src/authentication/scheme/bearer/jwt/authentication_provider.rs
    29
    impl AuthenticationProvider for JwtAuthenticationProvider {
    30
        #[allow(clippy::borrowed_box)]
    31
        async fn authenticate(
  • actix-web-security 0.1.0/src/authentication/scheme/bearer/jwt/user_details_service.rs
    15
    pub trait JwtUserDetailsService: Downcast + JwtUserDetailsServiceClone {
    16
        #[allow(clippy::borrowed_box)]
    17
        async fn find_user(&self, token: &Box<dyn Claims>) -> Option<Box<dyn UserDetails>>;
  • async-dnssd 0.5.0/src/future.rs
    20
    #[allow(clippy::borrowed_box)]
    21
    fn box_raw<T>(ptr: &mut Box<T>) -> *mut c_void {
  • async-dnssd 0.5.0/src/stream.rs
    19
    #[allow(clippy::borrowed_box)]
    20
    fn box_raw<T>(ptr: &mut Box<T>) -> *mut c_void {
  • automattermostatus 0.2.1/src/mattermost/status.rs
    81
        /// Send self custom status once
    82
        #[allow(clippy::borrowed_box)] // Box needed beacause we can get two different types.
    83
        pub fn _send(&self, session: &Box<dyn BaseSession>) -> Result<ureq::Response, ureq::Error> {
  • bardecoder 0.4.0/src/decode/qr/blocks.rs
    6
    #[allow(clippy::borrowed_box)] // QRMask is a trait, unsure how to solve
    7
    pub fn blocks(data: &QRData, level: &ECLevel, mask: &Box<QRMask>) -> Result<Vec<Vec<u8>>, QRError> {
  • bpxe 0.2.1/src/serde.rs
    24
    // ```
    25
    #[allow(clippy::borrowed_box)]
    26
    pub(crate) fn serialize_flow_node<S>(
  • civet 0.12.0-alpha.5/src/lib.rs
    229
        pub fn start<H: Handler + 'static + Sync>(options: Config, handler: H) -> io::Result<Server> {
    230
            #[allow(clippy::borrowed_box)]
    231
            fn internal_handler(
  • click 0.6.2/src/completer.rs
    84
        #[allow(clippy::borrowed_box)]
    85
        fn get_exact_command(&self, line: &str) -> Option<&Box<dyn Cmd>> {
  • cracken 1.0.1/src/generators.rs
    120
        #[allow(clippy::borrowed_box)]
    121
        fn gen_by_length<'b>(
    208
        #[allow(clippy::borrowed_box)]
    209
        fn gen_words<'b>(&self, out: &mut Box<dyn Write + 'b>) -> Result<(), std::io::Error> {
  • dbs-boot 0.3.0/src/aarch64/fdt.rs
    50
    #[allow(clippy::borrowed_box)]
    51
    /// Creates the flattened device tree for this aarch64 microVM.
  • dqcsim 0.4.1/src/core/host/simulation.rs
    217
        #[allow(clippy::borrowed_box)]
    218
        pub fn accelerator(&self) -> &Box<dyn Plugin> {
    222
        #[allow(clippy::borrowed_box)]
    223
        pub fn accelerator_mut(&mut self) -> &mut Box<dyn Plugin> {
  • dst-container 0.1.0/src/lib.rs
    63
        /// [`Arc`]: std::sync::Arc
    64
        #[allow(clippy::borrowed_box)]
    65
        fn clone(self: &Box<Self>) -> Box<Self> {
  • each 0.2.0/src/formats/mod.rs
    31
    #[allow(clippy::borrowed_box)]
    32
    pub fn guess_format<'a>(
  • elrond-wasm-debug 0.38.0/src/tx_execution/builtin_function_mocks/builtin_func_map.rs
    26
        #[allow(clippy::borrowed_box)]
    27
        pub fn get(&self, name: &TxFunctionName) -> Option<&Box<dyn BuiltinFunction>> {
  • erasable 1.2.1/tests/this_is_ub_examples.rs
    31
        let thin = Thin::from(Why { inner: Box::new(0) });
    32
        #[allow(clippy::borrowed_box)]
    33
        let _: &Box<u8> = thin.deref(); // use-after-free; cannot deref to value that does not exist
  • ethers-solc 1.0.2/src/filter.rs
    102
        /// and treat them as if the filter would also apply to those.
    103
        #[allow(clippy::borrowed_box)]
    104
        fn apply_custom_filter(
  • ev_slotmap 0.2.1/src/write.rs
    164
        #[allow(clippy::borrowed_box)]
    165
        fn run_operation_first(
  • ferrisetw 1.0.0/src/native/etw_types.rs
    225
        /// Create a new instance
    226
        #[allow(clippy::borrowed_box)] // 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)
    227
        pub fn create(callback_data: &'callbackdata Box<Arc<CallbackData>>, mut wide_logger_name: U16CString, callback: unsafe extern "system" fn(*mut Etw::EVENT_RECORD)) -> Self {
  • ferrisetw 1.0.0/src/native/evntrace.rs
    194
    /// Microsoft calls this "opening" the trace (and this calls `OpenTraceW`)
    195
    #[allow(clippy::borrowed_box)] // Being Boxed is really important, let's keep the Box<...> in the function signature to make the intent clearer
    196
    pub(crate) fn open_trace(trace_name: U16CString, callback_data: &Box<Arc<CallbackData>>) -> EvntraceNativeResult<TraceHandle> {
    351
    /// On error, this returns an `Err`
    352
    #[allow(clippy::borrowed_box)] // Being Boxed is really important, let's keep the Box<...> in the function signature to make the intent clearer
    353
    pub(crate) fn close_trace(trace_handle: TraceHandle, callback_data: &Box<Arc<CallbackData>>) -> EvntraceNativeResult<bool> {
  • fltk-form 0.1.5/src/lib.rs
    679
    #[allow(clippy::borrowed_box)]
    680
    fn rename_prop_(wid: &Box<dyn WidgetExt>, prop: &str, new_name: &str) {
    690
    #[allow(clippy::borrowed_box)]
    691
    fn get_prop_(wid: &Box<dyn WidgetExt>, prop: &str) -> Option<String> {
    731
    #[allow(clippy::borrowed_box)]
    732
    fn set_prop_(wid: &Box<dyn WidgetExt>, prop: &str, value: &str) -> Result<(), FltkFormError> {
    776
    #[allow(clippy::borrowed_box)]
    777
    fn get_props_(wid: &Box<dyn WidgetExt>) -> HashMap<String, String> {
    791
    #[allow(clippy::borrowed_box)]
    792
    fn get_widget_(wid: &Box<dyn WidgetExt>, prop: &str) -> Option<Box<dyn WidgetExt>> {
  • fluvio-smartengine 0.5.4/src/instance.rs
    27
        #[cfg(test)]
    28
        #[allow(clippy::borrowed_box)]
    29
        pub(crate) fn transform(&self) -> &Box<dyn DowncastableTransform> {
  • fqgrep 1.0.2/src/main.rs
    490
    /// Process a chunk of paired end records in parallel.
    491
    #[allow(clippy::borrowed_box)] // FIXME: remove me later and solve
    492
    fn process_paired_reads(
  • geo-booleanop 0.3.2/src/splay/tree.rs
    396
    /// root. Otherwise the closest key to the specified key will be at the root.
    397
    #[allow(clippy::borrowed_box)]
    398
    fn splay<K, V, C>(key: &K, node: &mut Box<Node<K, V>>, comparator: &C)
  • girt-core 2.2.1/src/module/modules.rs
    34
    	#[allow(clippy::borrowed_box, clippy::panic)]
    35
    	fn get_module(&self, state: State) -> &Box<dyn Module + 'modules> {
  • graphannis-capi 2.4.2/src/cerror.rs
    37
    #[allow(clippy::borrowed_box)]
    38
    fn error_kind(e: &Box<dyn StdError>) -> &'static str {
  • grid-sdk 0.3.5/src/rest_api/resources/track_and_trace/v1/handler.rs
    261
    #[allow(clippy::borrowed_box)]
    262
    fn parse_property_slice<'a>(
  • hassium-core 0.1.3/src/assets/database.rs
    161
        #[allow(clippy::borrowed_box)]
    162
        pub fn fetch_engine(&self) -> &Box<dyn FetchEngine> {
    166
        #[allow(clippy::borrowed_box)]
    167
        pub fn fetch_engine_mut(&mut self) -> &mut Box<dyn FetchEngine> {
  • hextree 0.2.0/src/iteration.rs
    6
        stack: Vec<NodeStackIter<'a, V>>,
    7
        #[allow(clippy::borrowed_box)]
    8
        curr: Option<&'a Box<Node<V>>>,
    55
        stack: Vec<NodeStackIterMut<'a, V>>,
    56
        #[allow(clippy::borrowed_box)]
    57
        curr: Option<&'a mut Box<Node<V>>>,
  • iced_aw 0.3.0/src/native/tab_bar.rs
    461
    #[allow(
    462
        clippy::borrowed_box,
    463
        clippy::too_many_lines,
  • ichen-openprotocol 0.5.0/src/state_values.rs
    131
        /// ~~~
    132
        #[allow(clippy::borrowed_box)]
    133
        pub fn job_card_id(&self) -> Option<&str> {
    157
        /// ~~~
    158
        #[allow(clippy::borrowed_box)]
    159
        pub fn mold_id(&self) -> Option<&str> {
  • kingslayer 0.5.5/src/entity/room.rs
    53
        #[allow(clippy::borrowed_box)]
    54
        fn find_element(&self, name: &str) -> Option<&Box<Element>> {
    76
        }
    77
        #[allow(clippy::borrowed_box)]
    78
        pub fn find_path(&self, direction: &str) -> Option<&Box<Pathway>> {
    84
        }
    85
        #[allow(clippy::borrowed_box)]
    86
        pub fn find_path_mut(&mut self, direction: &str) -> Option<&mut Box<Pathway>> {
    335
        }
    336
        #[allow(clippy::borrowed_box)]
    337
        fn find_item(&self, item_name: &str) -> Option<&Box<Item>> {
    343
        }
    344
        #[allow(clippy::borrowed_box)]
    345
        fn find_item_mut(&mut self, item_name: &str) -> Option<&mut Box<Item>> {
  • kingslayer 0.5.5/src/inventory/mod.rs
    61
        #[allow(clippy::borrowed_box)]
    62
        pub fn find_item(&self, item_name: &str) -> Option<&Box<Item>> {
    68
        }
    69
        #[allow(clippy::borrowed_box)]
    70
        pub fn find_item_mut(&mut self, item_name: &str) -> Option<&mut Box<Item>> {
  • lib3h 0.0.42/src/rrdht_util/calc_location_for_id.rs
    4
    #[allow(clippy::borrowed_box)]
    5
    /// Given a space-layer agent_id, or a transport/node-layer node_id
  • lib3h_crypto_api 0.0.42/src/buffer/mod.rs
    81
        /// | if a == b; return 0
    82
        #[allow(clippy::borrowed_box)]
    83
        fn compare(&self, b: &Box<dyn Buffer>) -> i32 {
  • lib3h_crypto_api 0.0.42/src/crypto_system/mod.rs
    92
    /// with Lib3h and Holochain.
    93
    #[allow(clippy::borrowed_box)]
    94
    pub trait CryptoSystem: Sync + Send {
  • libreda-splay 0.1.0/src/tree.rs
    399
    /// root. Otherwise the closest key to the specified key will be at the root.
    400
    #[allow(clippy::borrowed_box)]
    401
    fn splay<K, V, C>(key: &K, node: &mut Box<Node<K, V>>, comparator: &C)
  • light-curve-feature 0.5.2/src/periodogram/mod.rs
    81
        #[allow(clippy::borrowed_box)] // https://github.com/rust-lang/rust-clippy/issues/4305
    82
        pub fn from_t(
  • mesher 0.8.0/src/mesher.rs
    75
      /// Will return the appropriate errors if any of it fails.
    76
      #[allow(clippy::borrowed_box)] // because we can't easily massage &mut Box<T> into &mut T, apparently
    77
      fn get_transport_for_path(&mut self, path: &str) -> fail::Result<&mut Box<dyn Transport>> {
  • multiversx-chain-vm 0.1.4/src/tx_execution/builtin_function_mocks/builtin_func_map.rs
    26
        #[allow(clippy::borrowed_box)]
    27
        pub fn get(&self, name: &TxFunctionName) -> Option<&Box<dyn BuiltinFunction>> {
  • naia-bevy-shared 0.15.0/src/world_data.rs
    58
        #[allow(clippy::borrowed_box)]
    59
        pub(crate) fn component_access(
  • naia-hecs-shared 0.14.0/src/world_data.rs
    26
        #[allow(clippy::borrowed_box)]
    27
        pub(crate) fn component_access(
  • ncspot 0.12.0/src/ui/layout.rs
    146
        #[allow(clippy::borrowed_box)]
    147
        fn get_current_screen(&self) -> Option<&Box<dyn ViewExt>> {
    172
        #[allow(clippy::borrowed_box)]
    173
        fn get_top_view(&self) -> Option<&Box<dyn ViewExt>> {
  • noria-dataflow 0.6.0/src/node/process.rs
    338
    #[allow(clippy::borrowed_box)]
    339
    // crate visibility due to use by tests
  • npc-engine-core 0.1.0/src/edge.rs
    172
        /// Returns the expanded edge associated to a task, None if it does not exist.
    173
        #[allow(clippy::borrowed_box)]
    174
        pub fn get_edge(&self, task: &Box<dyn Task<D>>) -> Option<Edge<D>> {
  • npc-engine-core 0.1.0/src/task.rs
    72
        /// Use the macro [impl_task_boxed_methods] to automatically generate this method.
    73
        #[allow(clippy::borrowed_box)]
    74
        fn box_eq(&self, other: &Box<dyn Task<D>>) -> bool;
  • nsga 0.1.1/src/optimizer.rs
    334
        #[allow(clippy::borrowed_box)]
    335
        fn value(&self, s: &S, obj: &Box<dyn Objective<S> + 'a>) -> f64 {
  • ntex-rt 0.4.7/src/arbiter.rs
    51
    impl Arbiter {
    52
        #[allow(clippy::borrowed_box)]
    53
        pub(super) fn new_system() -> (Self, ArbiterController) {
  • nu-protocol 0.75.0/src/engine/engine_state.rs
    749
        #[allow(clippy::borrowed_box)]
    750
        pub fn get_decl(&self, decl_id: DeclId) -> &Box<dyn Command> {
    1870
        #[allow(clippy::borrowed_box)]
    1871
        pub fn get_decl(&self, decl_id: DeclId) -> &Box<dyn Command> {
  • ogma-libs 0.1.6/src/vm/script.rs
    92
        #[allow(clippy::borrowed_box)]
    93
        #[inline]
  • ops 0.6.0/src/check.rs
    40
        /// The actual checker itself
    41
        #[allow(clippy::borrowed_box)]
    42
        pub fn checker(&self) -> &Box<dyn Checker> {
  • pam-client 0.5.0/src/ffi.rs
    25
    /// Wraps `callback` along with [`pam_converse<T>`] for handing to libpam.
    26
    #[allow(clippy::borrowed_box)]
    27
    pub(crate) fn to_pam_conv<T: ConversationHandler>(callback: &mut Box<T>) -> PamConversation {
  • pi_cg2d 0.2.0/src/boolean/splay/tree.rs
    398
    /// root. Otherwise the closest key to the specified key will be at the root.
    399
    #[allow(clippy::borrowed_box)]
    400
    fn splay<K, V, C>(key: &K, node: &mut Box<Node<K, V>>, comparator: &C)
  • prefixset 0.1.0-rc.2/src/node/iter.rs
    18
    #[derive(Debug)]
    19
    #[allow(clippy::borrowed_box)]
    20
    pub struct Children<'a, P: IpPrefix> {
  • prefixset 0.1.0-rc.2/src/node/mod.rs
    295
        #[allow(clippy::needless_lifetimes, clippy::borrowed_box)]
    296
        pub fn children<'a>(self: &'a Box<Self>) -> Children<'a, P> {
  • prexel 0.1.9/src/error.rs
    183
        #[inline]
    184
        #[allow(clippy::borrowed_box)]
    185
        pub fn get_ref(&self) -> Option<&Box<dyn std::error::Error + Send + Sync>> {
  • pria 0.1.3/src/lib.rs
    19
    #[allow(clippy::borrowed_box)]
    20
    impl Factory {
  • pwlp 1.0.0/src/pwlp/vm.rs
    376
    	#[allow(clippy::borrowed_box)]
    377
    	pub fn strip(&'a mut self) -> &'a mut Box<dyn Strip> {
  • qlog 0.8.0/src/streamer.rs
    221
        /// Returns the writer.
    222
        #[allow(clippy::borrowed_box)]
    223
        pub fn writer(&self) -> &Box<dyn std::io::Write + Send + Sync> {
  • reign_router 0.2.1/src/middleware/mod.rs
    8
    pub struct Chain<'a> {
    9
        #[allow(clippy::borrowed_box)]
    10
        pub(crate) handler: &'a Box<dyn Fn(&mut Request) -> HandleFuture + Send + Sync + 'static>,
  • robespierre-fw-macros 0.3.1/src/lib.rs
    8
    #[allow(clippy::borrowed_box)]
    9
    struct ExtraArgs<'a>(&'a [&'a Box<Type>], &'a [Vec<Attribute>]);
  • rtlola-parser 0.3.0/src/syntactic_sugar.rs
    552
        /// LocalChangeInstructions are directly replied and never returned.
    553
        #[allow(clippy::borrowed_box)]
    554
        fn desugarize_expression(
    740
        #[allow(clippy::borrowed_box)]
    741
        fn desugarize_input(&self, input: &Input, ast: &RtLolaAst, current_sugar: &Box<dyn SynSugar>) -> ChangeSet {
    745
        #[allow(clippy::borrowed_box)]
    746
        fn desugarize_mirror(&self, mirror: &AstMirror, ast: &RtLolaAst, current_sugar: &Box<dyn SynSugar>) -> ChangeSet {
    750
        #[allow(clippy::borrowed_box)]
    751
        fn desugarize_output(&self, output: &Output, ast: &RtLolaAst, current_sugar: &Box<dyn SynSugar>) -> ChangeSet {
    755
        #[allow(clippy::borrowed_box)]
    756
        fn desugarize_trigger(&self, trigger: &Trigger, ast: &RtLolaAst, current_sugar: &Box<dyn SynSugar>) -> ChangeSet {
  • s2n-tls 0.0.23/src/error.rs
    247
        #[allow(clippy::borrowed_box)]
    248
        /// Returns an [`std::error::Error`] if the error source was [`ErrorSource::Application`],
  • sarchive 0.12.1/src/archive/mod.rs
    44
    /// The Archive trait should be implemented by every backend.
    45
    #[allow(clippy::borrowed_box)]
    46
    pub trait Archive: Send {
  • sarchive 0.12.1/src/monitor.rs
    38
    /// channel so it can be processed later on.
    39
    #[allow(clippy::borrowed_box)]
    40
    fn check_and_queue(
    67
    /// upon receipt of which it immediately returns.
    68
    #[allow(clippy::borrowed_box)]
    69
    pub fn monitor(
  • scalpel 0.2.0/src/layers/sctp.rs
    86
    #[allow(clippy::borrowed_box)]
    87
    fn serialize_sctp_chunk_layer<S>(
  • sctp-async 0.0.0/src/association/association_internal.rs
    1770
        #[allow(clippy::borrowed_box)]
    1771
        async fn handle_reconfig_param(
    2139
        #[allow(clippy::borrowed_box)]
    2140
        async fn handle_chunk(
  • sctp-proto 0.1.3/src/association/mod.rs
    814
        #[allow(clippy::borrowed_box)]
    815
        fn handle_chunk(
    1528
        #[allow(clippy::borrowed_box)]
    1529
        fn handle_reconfig_param(
  • shi 0.1.5/src/command_set.rs
    48
        /// `Option<&Command>` - The command with the name requested, or None if it was not found.
    49
        #[allow(clippy::borrowed_box)]
    50
        pub fn get(&self, name: &str) -> Option<&Box<Command<'a, S>>> {
  • sim2h 0.0.52-alpha2/src/connection_state.rs
    23
        /// construct a new "Joined" ConnectionState item
    24
        #[allow(clippy::borrowed_box)]
    25
        pub fn new_joined(space_hash: SpaceHash, agent_id: AgentId) -> Sim2hResult<Self> {
  • sim2h 0.0.52-alpha2/src/naive_sharding.rs
    6
    #[allow(clippy::borrowed_box)]
    7
    /// ack - lib3h can only convert agent_ids to locations right now
    29
    #[allow(clippy::borrowed_box)]
    30
    #[newrelic_autotrace(SIM2H)]
  • smartcore 0.3.0/src/naive_bayes/mod.rs
    50
        /// Logarithm of conditional probability of sample j given class in the specified index.
    51
        #[allow(clippy::borrowed_box)]
    52
        fn log_likelihood<'a>(&'a self, class_index: usize, j: &'a Box<dyn ArrayView1<X> + 'a>) -> f64;
  • sqlx_migrator 0.4.0/src/migrator.rs
    76
        /// Add migration to migration table
    77
        #[allow(clippy::borrowed_box)]
    78
        async fn add_migration_to_db_table(
    84
        /// Delete migration from table
    85
        #[allow(clippy::borrowed_box)]
    86
        async fn delete_migration_from_db_table(
    276
        /// Apply given migration and add it to applied migration table
    277
        #[allow(clippy::borrowed_box)]
    278
        async fn apply_migration(&self, migration: &Box<dyn MigrationTrait<DB>>) -> Result<(), Error> {
    325
        /// Revert provided migration and remove migration from table
    326
        #[allow(clippy::borrowed_box)]
    327
        async fn revert_migration(&self, migration: &Box<dyn MigrationTrait<DB>>) -> Result<(), Error> {
  • ssi-dids 0.1.0/src/lib.rs
    653
    #[allow(clippy::borrowed_box)]
    654
    impl<'a> DIDMethods<'a> {
  • stuart 0.2.3/src/serve/mod.rs
    189
    /// Prints errors.
    190
    #[allow(clippy::borrowed_box)]
    191
    fn error_handler(e: &Box<dyn StuartError>) {
  • stybulate 1.1.2/src/cell.rs
    29
        /// Returns the unstylable content if it is a Text Variant, None otherwise
    30
        #[allow(clippy::borrowed_box)]
    31
        pub fn to_unstylable(&self) -> Option<&Box<dyn Unstyle + 'a>> {
  • stybulate 1.1.2/src/lib.rs
    100
        #[allow(clippy::borrowed_box)]
    101
        fn get(&self, i: usize) -> Option<&Box<dyn Unstyle>> {
    105
        #[allow(clippy::borrowed_box)]
    106
        fn to_ref_vec(&self) -> Vec<&Box<dyn Unstyle>> {
    354
    #[allow(clippy::borrowed_box)]
    355
    fn format_unstylable<'a>(
    399
    #[allow(clippy::borrowed_box)]
    400
    fn create_data_lines<'a>(
  • subcomponent 0.1.0/src/cmd/mod.rs
    266
    #[cfg_attr(feature = "cargo-clippy", allow(borrowed_box))]
    267
    fn handle_command(args: &[String], cmd: &mut Box<Cmd>) -> Result<bool, Error> {
  • subcomponent 0.1.0/src/cmd/status.rs
    40
    impl CmdStatus {
    41
       #[cfg_attr(feature = "cargo-clippy", allow(borrowed_box))]
    42
       fn print_component_id(&self, t: &mut Box<term::StdoutTerminal>, component: &config::Component) -> Result<(), std::io::Error> {
    54
       #[cfg_attr(feature = "cargo-clippy", allow(borrowed_box))]
    55
       fn print_component_name(&self, t: &mut Box<term::StdoutTerminal>, component: &config::Component) -> Result<(), std::io::Error>  {
    69
       #[cfg_attr(feature = "cargo-clippy", allow(borrowed_box))]
    70
       fn print_component_path(&self, t: &mut Box<term::StdoutTerminal>, component: &config::Component) -> Result<(), std::io::Error>  {
  • subcomponent 0.1.0/src/config.rs
    51
        #[cfg_attr(feature = "cargo-clippy", allow(borrowed_box))]
    52
        pub fn get(&self, key: &str) -> Option<&Box<Property>>
    239
        #[cfg_attr(feature = "cargo-clippy", allow(borrowed_box))]
    240
        pub fn fetch_method_get(&self, name: &str) -> &Box<fetcher::Method> {
  • svc-authz 0.11.1/src/lib.rs
    461
    impl HttpClient {
    462
        #[allow(clippy::borrowed_box)]
    463
        async fn check_cache(
    525
        #[allow(clippy::borrowed_box)]
    526
        async fn check_ban(
  • swc_bundler 0.199.10/src/bundler/chunk/merge.rs
    1373
        file: &'a FileName,
    1374
        #[allow(clippy::borrowed_box)]
    1375
        hook: &'a Box<dyn 'b + Hook>,
  • syrette 0.4.2/src/di_container/binding_storage.rs
    23
        #[allow(clippy::borrowed_box)]
    24
        pub fn get<Interface>(&self, name: Option<&'static str>) -> Option<&Box<Provider>>
  • templar 0.5.0/src/context/scoped.rs
    4
    #[derive(Debug)]
    5
    #[allow(clippy::borrowed_box)]
    6
    pub struct ScopedContext<'a>(ContextWrapper<'a>, Rc<RefCell<ContextMap>>);
    8
    #[allow(clippy::borrowed_box)]
    9
    impl<'a> ScopedContext<'a> {
  • themis 0.14.0/src/secure_session.rs
    818
    // It is important for the context to be boxed, hence this lint suppression.
    819
    #[allow(clippy::borrowed_box)]
    820
    fn context_as_user_data(context: &Box<SecureSessionContext>) -> *mut c_void {
  • tree-sitter-facade 0.9.0/src/logger.rs
    7
        pub struct LoggerReturn<'a, 's> {
    8
            #[allow(clippy::borrowed_box, clippy::type_complexity)]
    9
            pub inner: &'s Box<dyn FnMut(LogType, &str) + 'a>,
    12
        impl<'a, 's> LoggerReturn<'a, 's> {
    13
            #[allow(clippy::borrowed_box, clippy::type_complexity)]
    14
            #[inline]
  • tree-sitter-facade-sg 0.9.1/src/logger.rs
    7
        pub struct LoggerReturn<'a, 's> {
    8
            #[allow(clippy::borrowed_box, clippy::type_complexity)]
    9
            pub inner: &'s Box<dyn FnMut(LogType, &str) + 'a>,
    12
        impl<'a, 's> LoggerReturn<'a, 's> {
    13
            #[allow(clippy::borrowed_box, clippy::type_complexity)]
    14
            #[inline]
  • tremor-script 0.13.0-rc.11/src/errors.rs
    969
    /// Creates a stream not defined error
    970
    #[allow(clippy::borrowed_box)]
    971
    pub fn query_stream_not_defined_err<S, I>(stmt: &S, inner: &I, name: String, port: String) -> Error
    1031
    /// always, this is a function to create errors
    1032
    #[allow(clippy::borrowed_box)]
    1033
    pub fn query_guard_not_bool<T, O: Ranged, I: Ranged>(
  • tuf 0.3.0-beta9/src/repository/ephemeral.rs
    213
    #[allow(clippy::borrowed_box)]
    214
    async fn bytes_to_reader(
  • tuftool 0.8.2/src/root.rs
    227
        #[allow(clippy::borrowed_box)]
    228
        fn add_key(path: &Path, roles: &[RoleType], key_source: &Box<dyn KeySource>) -> Result<()> {
    264
        #[allow(clippy::borrowed_box)]
    265
        fn gen_rsa_key(
  • v9 0.1.43/src/lock.rs
    86
        }
    87
        #[allow(clippy::borrowed_box)]
    88
        pub unsafe fn contents(&mut self) -> *mut dyn Any {
    129
        type Target = dyn Any;
    130
        #[allow(clippy::borrowed_box)]
    131
        fn deref(&self) -> &dyn Any {
    141
        type Target = dyn Any;
    142
        #[allow(clippy::borrowed_box)]
    143
        fn deref(&self) -> &dyn Any {
  • vst 0.3.0/src/api.rs
    139
        // Suppresses warning about returning a reference to a box
    140
        #[allow(clippy::borrowed_box)]
    141
        pub unsafe fn get_plugin(&self) -> &mut Box<dyn Plugin> {
  • wasmer-cli 3.2.0-alpha.1/src/c_gen/mod.rs
    124
                    // function with no, name, assume it's a function pointer
    125
                    #[allow(clippy::borrowed_box)]
    126
                    let ret: CType = return_value
    182
                } => {
    183
                    #[allow(clippy::borrowed_box)]
    184
                    let ret: CType = return_value
  • wasmi 0.24.0/src/instance.rs
    208
        /// Prepares an item to match the expected iterator `Item` signature.
    209
        #[allow(clippy::borrowed_box)]
    210
        fn convert_item((name, export): (&'instance Box<str>, &'instance Extern)) -> Export {
  • weasel 0.11.0/src/event.rs
    212
        /// Returns the event.
    213
        #[allow(clippy::borrowed_box)]
    214
        pub fn event(&self) -> &Box<dyn Event<R> + Send> {
    307
        /// Returns the event.
    308
        #[allow(clippy::borrowed_box)]
    309
        pub fn event(&self) -> &Box<dyn Event<R> + Send> {
    390
        /// Returns the event.
    391
        #[allow(clippy::borrowed_box)]
    392
        pub fn event(&self) -> &Box<dyn Event<R> + Send> {
  • webrtc-sctp 0.7.0/src/association/association_internal.rs
    1796
        #[allow(clippy::borrowed_box)]
    1797
        async fn handle_reconfig_param(
    2147
        #[allow(clippy::borrowed_box)]
    2148
        async fn handle_chunk(
  • webrtc-unreliable-client 0.2.0/src/webrtc/crates/sctp/association/association_internal.rs
    1733
        #[allow(clippy::borrowed_box)]
    1734
        async fn handle_reconfig_param(
    2054
        #[allow(clippy::borrowed_box)]
    2055
        async fn handle_chunk(
  • window 0.5.0/src/lib.rs
    93
        /// Connect window to the drawing context.
    94
        #[allow(clippy::borrowed_box)] // Nope, this is actually required
    95
        fn connect(&mut self, draw: &mut Box<dyn Draw>);
  • wlambda 0.8.1/src/vval.rs
    1554
    #[allow(clippy::borrowed_box)]
    1555
    pub trait VValUserData {
  • xpq 0.2.1/src/api.rs
    178
        #[allow(clippy::borrowed_box)]
    179
        fn write_simple_row_group(
  • yew-hooks 0.2.0/src/hooks/use_raf.rs
    65
                                let on_frame = on_frame.borrow();
    66
                                #[allow(clippy::borrowed_box)]
    67
                                let on_frame: &Box<dyn Fn(f64)> = on_frame.as_ref().unwrap();
    86
                                let on_frame_clone = on_frame_clone.borrow();
    87
                                #[allow(clippy::borrowed_box)]
    88
                                let on_frame_clone: &Box<dyn Fn(f64)> =
  • zellij-server 0.34.4/src/panes/floating_panes/mod.rs
    52
    #[allow(clippy::borrowed_box)]
    53
    #[allow(clippy::too_many_arguments)]
  • zellij-server 0.34.4/src/panes/tiled_panes/mod.rs
    368
        // than me should clean this up someday...
    369
        #[allow(clippy::borrowed_box)]
    370
        pub fn get_pane(&self, pane_id: PaneId) -> Option<&Box<dyn Pane>> {
    1155
    #[allow(clippy::borrowed_box)]
    1156
    pub fn is_inside_viewport(viewport: &Viewport, pane: &Box<dyn Pane>) -> bool {
  • arrow2 0.15.0/src/lib.rs
    9
    // Trait objects must be returned as a &Box<dyn Array> so that they can be cloned
    10
    #![allow(clippy::borrowed_box)]
    11
    // Allow type complexity warning to avoid API break.
  • cargo-tally 1.0.22/src/lib.rs
    3
        clippy::borrow_as_ptr,
    4
        clippy::borrowed_box,
    5
        clippy::cast_possible_truncation,
  • crystal-engine 0.4.0/src/lib.rs
    69
    #![allow(clippy::needless_doctest_main)]
    70
    #![allow(clippy::borrowed_box)] // There are two incorrect suggestions for this lint: https://github.com/rust-lang/rust-clippy/issues/3971
  • fang 0.10.0/src/blocking/worker.rs
    1
    #![allow(clippy::borrowed_box)]
    2
    #![allow(clippy::unnecessary_unwrap)]
  • git-cinnabar 0.6.0-rc2/src/main.rs
    5
    #![allow(clippy::borrowed_box)]
    6
    #![allow(clippy::missing_safety_doc)]
  • iced_aw 0.3.0/src/lib.rs
    42
        clippy::module_name_repetitions,
    43
        clippy::borrowed_box,
    44
        clippy::missing_const_for_fn,
  • json-rpc2 0.11.1/src/lib.rs
    1
    #![deny(missing_docs)]
    2
    #![allow(clippy::borrowed_box)]
    3
    //! Simple, robust and pragmatic facade for JSON-RPC2 services that is transport agnostic.
  • koopa 0.0.6/examples/interpreter/interpreter.rs
    3
    // For convenience.
    4
    #![allow(clippy::borrowed_box)]
  • lancelot 0.8.6/src/workspace/mod.rs
    1
    #![allow(clippy::borrowed_box)]
  • libawm 0.1.0/src/lib.rs
    129
    )]
    130
    #![allow(clippy::too_many_arguments, clippy::borrowed_box, clippy::or_fun_call)]
    131
    #![doc(
  • orml-authority 0.4.0/src/lib.rs
    18
    #![allow(clippy::boxed_local)]
    19
    #![allow(clippy::borrowed_box)]
    20
    #![allow(clippy::unused_unit)]
  • ptr-union 2.2.2/tests/smoke.rs
    4
    #![allow(clippy::borrowed_box, clippy::drop_ref)]
  • relay-man 0.2.5/src/lib.rs
    1
    #![allow(dead_code)]
    2
    #![allow(clippy::borrowed_box)]
  • rust-tdlib 0.4.1/src/lib.rs
    41
    #![allow(
    42
        clippy::borrowed_box,
    43
        clippy::upper_case_acronyms,
  • rusty_express 0.4.3/src/core/conn.rs
    1
    #![allow(clippy::borrowed_box)]
    2
    #![allow(dead_code)]
  • rusty_express 0.4.3/src/core/context.rs
    1
    #![allow(dead_code)]
    2
    #![allow(clippy::borrowed_box)]
  • rusty_express 0.4.3/src/core/router.rs
    1
    #![allow(dead_code)]
    2
    #![allow(clippy::borrowed_box)]
  • rustycpp 0.1.6/src/utils/antlrlexerwrapper.rs
    1
    //! Wrapper over a token collection for antlr consumption.
    2
    #![allow(clippy::unused_self, clippy::cast_sign_loss, clippy::borrowed_box)]
    3
    use antlr_rust::atn_simulator::IATNSimulator;
  • sodium-rust 2.1.2/src/impl_/mod.rs
    1
    #![allow(clippy::borrowed_box)]
  • spectrusty-core 0.4.0/src/bus/dynbus/serde.rs
    7
    */
    8
    #![allow(clippy::borrowed_box)]
    9
    use core::fmt::{self, Debug};
  • swc_ecma_transforms_optimization 0.172.9/src/simplify/const_propagation.rs
    1
    #![allow(clippy::borrowed_box)]
  • ux-components 0.1.3/src/lib.rs
    9
        clippy::type_complexity,
    10
        clippy::borrowed_box,
    11
        clippy::module_inception,
  • ux-dx 0.2.1/src/lib.rs
    56
        clippy::vec_init_then_push,
    57
        clippy::borrowed_box,
    58
        clippy::manual_unwrap_or,