• aleo 0.3.3/cli/helpers/updater.rs
    82
        /// Display the CLI message.
    83
        #[allow(clippy::unnecessary_to_owned)]
    84
        pub fn print_cli() -> String {
  • apache-avro 0.14.0/src/encode.rs
    110
                #[allow(unknown_lints)] // for Rust 1.54.0
    111
                #[allow(clippy::unnecessary_to_owned)]
    112
                &uuid.to_string(),
  • autocxx-integration-tests 0.23.1/tests/integration_test.rs
    9766
        );
    9767
        #[allow(clippy::unnecessary_to_owned)] // wrongly triggers on into_iter() below
    9768
        let allowlist_fns: Vec<String> = TYPES
  • coreos-installer 0.16.1/src/live/mod.rs
    304
        #[allow(clippy::unnecessary_to_owned)]
    305
        iso.set_kargs(&iso.kargs_default()?.to_string())?;
    367
        if iso.kargs_supported() {
    368
            #[allow(clippy::unnecessary_to_owned)]
    369
            iso.set_kargs(&iso.kargs_default()?.to_string())?;
  • crab-dlna 0.1.0/src/streaming.rs
    130
        #[allow(clippy::unnecessary_to_owned)]
    131
        fn get_routes(
  • df_ls_syntax_analysis 0.3.0-rc.1/src/lib.rs
    101
                        let ch_str = ch.to_string();
    102
                        #[allow(clippy::unnecessary_to_owned)]
    103
                        match severity {
  • fyrox-ui 0.20.0/src/lib.rs
    2257
        #[allow(clippy::unnecessary_to_owned)] // False positive
    2258
        fn copy_node_recursive(
    2294
        #[allow(clippy::unnecessary_to_owned)] // False positive
    2295
        fn copy_node_recursive_with_limit(
  • git-delta 0.15.1/src/features/side_by_side.rs
    526
            Some(BgFillMethod::Spaces) => panel_line.push_str(
    527
                #[allow(clippy::unnecessary_to_owned)]
    528
                &fill_style
  • git-delta 0.15.1/src/paint.rs
    232
                    line.push_str(
    233
                        #[allow(clippy::unnecessary_to_owned)]
    234
                        &fill_style
    366
            line.push_str(
    367
                #[allow(clippy::unnecessary_to_owned)]
    368
                &empty_line_style
  • goglob-common 0.2.0/src/charcls.rs
    183
        // at compile-time anyway, so it shouldn't be of much concern.
    184
        #[allow(clippy::unnecessary_to_owned)]
    185
        fn into_iter(self) -> Self::IntoIter {
  • guess-that-lang 1.0.20/src/terminal.rs
    379
        /// Responds to input from the user (1 | 2 | 3 | 4).
    380
        #[allow(clippy::unnecessary_to_owned)]
    381
        pub fn process_input(
  • identity_iota_core 0.7.0-alpha.4/src/did/iota_did.rs
    217
      // TODO: Remove the lint once this bug in clippy has been fixed. Without to_owned a mutable reference will be aliased.
    218
      #[allow(clippy::unnecessary_to_owned)]
    219
      fn normalize(mut did: CoreDID) -> CoreDID {
  • imuxin-delta-lib 0.0.2/src/features/side_by_side.rs
    528
            Some(BgFillMethod::Spaces) => panel_line.push_str(
    529
                #[allow(clippy::unnecessary_to_owned)]
    530
                &fill_style
  • imuxin-delta-lib 0.0.2/src/paint.rs
    232
                    line.push_str(
    233
                        #[allow(clippy::unnecessary_to_owned)]
    234
                        &fill_style
    366
            line.push_str(
    367
                #[allow(clippy::unnecessary_to_owned)]
    368
                &empty_line_style
  • lrwn 1.0.0/src/cflist.rs
    201
        #[allow(clippy::unnecessary_to_owned)]
    202
        fn into_iter(self) -> Self::IntoIter {
  • matrix-sdk-crypto 0.6.0/src/file_encryption/attachments.rs
    240
                alg: "A256CTR".to_owned(),
    241
                #[allow(clippy::unnecessary_to_owned)]
    242
                k: Base64::new(key.to_vec()),
    244
            });
    245
            #[allow(clippy::unnecessary_to_owned)]
    246
            let encoded_iv = Base64::new(iv.to_vec());
  • notan_app 0.9.1/src/assets/storage.rs
    18
        pub(crate) fn register(&mut self, id: &str, type_id: TypeId) -> DoneSignal {
    19
            #[allow(clippy::unnecessary_to_owned)]
    20
            let fut = Box::pin(platter2::load_file(id.to_string()).map_err(|e| e.to_string()));
  • prometheus-weathermen 0.5.0/src/http_server.rs
    44
        #[allow(clippy::unnecessary_to_owned)]
    45
        for task in unscheduled_tasks.to_vec() {
  • qsv 0.87.0/src/cmd/enumerate.rs
    124
            } else if copy_operation {
    125
                #[allow(clippy::unnecessary_to_owned)]
    126
                record.push_field(&record[copy_index].to_vec());
  • rocfl 1.7.0/src/ocfl/store/s3.rs
    926
                #[allow(clippy::unnecessary_to_owned)]
    927
                let stream = tokio::fs::read(file_path.as_ref().to_path_buf())
  • serde_magnus 0.1.1/src/de/variant_deserializer.rs
    23
                Err(serde::de::Error::invalid_type(
    24
                    #[allow(clippy::unnecessary_to_owned)]
    25
                    Unexpected::Other(&unsafe { self.value.classname() }.into_owned()),
    49
                Err(serde::de::Error::invalid_type(
    50
                    #[allow(clippy::unnecessary_to_owned)]
    51
                    Unexpected::Other(&unsafe { self.value.classname() }.into_owned()),
    68
                Err(serde::de::Error::invalid_type(
    69
                    #[allow(clippy::unnecessary_to_owned)]
    70
                    Unexpected::Other(&unsafe { self.value.classname() }.into_owned()),
  • switcheroo-nx 0.3.0/src/gui/favorites.rs
    160
                // TODO: Remove once false positive is resolved
    161
                #[allow(clippy::unnecessary_to_owned)]
    162
                for entry in self.favorites().to_owned() {
  • tlfs-crdt 0.1.0/src/crdt.rs
    332
            // ensures that it has a static lifetime.
    333
            #[allow(clippy::unnecessary_to_owned)]
    334
            self.store.scan_prefix(path.as_ref().to_vec())
  • tract-core 0.19.2/src/ops/cnn/patches.rs
    93
                .flat_map(|coords| {
    94
                    #[allow(clippy::unnecessary_to_owned)] // I think this one is a clippy bug.
    95
                    coords
  • typed-index-collections 3.1.0/src/vec.rs
    1080
                }
    1081
                #[allow(clippy::unnecessary_to_owned)]
    1082
                for slice in &[
  • vrp-core 1.19.1/src/construction/features/shared_resource.rs
    178
            solution_ctx.routes.iter_mut().for_each(|route_ctx| {
    179
                #[allow(clippy::unnecessary_to_owned)]
    180
                self.interval_fn.deref()(route_ctx).cloned().unwrap_or_default().into_iter().for_each(|(start_idx, _)| {
  • glib 0.16.7/tests/structured_log.rs
    1
    #![allow(clippy::unnecessary_to_owned)]
    2
    #![allow(clippy::unnecessary_cast)]
  • gonk-player 0.1.2/src/lib.rs
    1
    #![recursion_limit = "2048"]
    2
    #![allow(clippy::should_implement_trait, clippy::unnecessary_to_owned)]
    3
    use cpal::{
  • ux-vg 0.2.9/src/lib.rs
    9
        clippy::search_is_some,
    10
        clippy::unnecessary_to_owned,
    11
        clippy::needless_range_loop,