Bug: chore: address Rust 1.89.0 clippy lints



Address the clippy lints occurring due to new rust version 1.89.0

See https://github.com/juspay/hyperswitch/issues/3391 for more information.
diff --git a/crates/euclid_macros/src/inner/knowledge.rs b/crates/euclid_macros/src/inner/knowledge.rs
index 49d645be72a..837a511f02d 100644
--- a/crates/euclid_macros/src/inner/knowledge.rs
+++ b/crates/euclid_macros/src/inner/knowledge.rs
@@ -301,35 +301,6 @@ impl Parse for Rule {
     }
 }
 
-#[derive(Clone)]
-enum Scope {
-    Crate,
-    Extern,
-}
-
-impl Parse for Scope {
-    fn parse(input: syn::parse::ParseStream<'_>) -> syn::Result<Self> {
-        let lookahead = input.lookahead1();
-        if lookahead.peek(Token![crate]) {
-            input.parse::<Token![crate]>()?;
-            Ok(Self::Crate)
-        } else if lookahead.peek(Token![extern]) {
-            input.parse::<Token![extern]>()?;
-            Ok(Self::Extern)
-        } else {
-            Err(lookahead.error())
-        }
-    }
-}
-
-impl Display for Scope {
-    fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
-        match self {
-            Self::Crate => write!(f, "crate"),
-            Self::Extern => write!(f, "euclid"),
-        }
-    }
-}
 #[derive(Clone)]
 struct Program {
     rules: Vec<Rc<Rule>>,
diff --git a/crates/router/src/core/payments.rs b/crates/router/src/core/payments.rs
index d70dc7933b4..50d703ba6a5 100644
--- a/crates/router/src/core/payments.rs
+++ b/crates/router/src/core/payments.rs
@@ -782,10 +782,11 @@ where
             payment_data = match connector_details {
                 ConnectorCallType::PreDetermined(ref connector) => {
                     #[cfg(all(feature = "dynamic_routing", feature = "v1"))]
-                    let routable_connectors =
-                        convert_connector_data_to_routable_connectors(&[connector.clone()])
-                            .map_err(|e| logger::error!(routable_connector_error=?e))
-                            .unwrap_or_default();
+                    let routable_connectors = convert_connector_data_to_routable_connectors(
+                        std::slice::from_ref(connector),
+                    )
+                    .map_err(|e| logger::error!(routable_connector_error=?e))
+                    .unwrap_or_default();
                     let schedule_time = if should_add_task_to_process_tracker {
                         payment_sync::get_sync_process_schedule_time(
                             &*state.store,
diff --git a/crates/router/src/core/user.rs b/crates/router/src/core/user.rs
index 6554ec1b016..837b0bcf9fc 100644
--- a/crates/router/src/core/user.rs
+++ b/crates/router/src/core/user.rs
@@ -400,12 +400,12 @@ pub async fn connect_account(
             logger::info!(?welcome_email_result);
         }
 
-        return Ok(ApplicationResponse::Json(
+        Ok(ApplicationResponse::Json(
             user_api::ConnectAccountResponse {
                 is_email_sent: magic_link_result.is_ok(),
                 user_id: user_from_db.get_user_id().to_string(),
             },
-        ));
+        ))
     } else {
         Err(find_user
             .err()

## Type of Change
<!-- Put an `x` in the boxes that apply -->

- [ ] Bugfix
- [ ] New feature
- [ ] Enhancement
- [x] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD

## Description
<!-- Describe your changes in detail -->
This PR addresses the clippy lints occurring due to new rust version 1.89.0

### Additional Changes

- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables

<!--
Provide links to the files with corresponding changes.

Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->


## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.

If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->


## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->

1. just clippy

<img width="552" height="237" alt="image" src="https://github.com/user-attachments/assets/11c34b90-2697-48c2-ad08-7436e83f6799" />

2. just clippy_v2

<img width="548" height="223" alt="image" src="https://github.com/user-attachments/assets/42da0048-5e03-4302-8f1c-fd0885ce882d" />


## Checklist
<!-- Put an `x` in the boxes that apply -->

- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
