Bug: chore: resolve v2 warnings in common_utils



Resolve all v2 warnings in common_utils crate.
diff --git a/crates/common_utils/src/id_type/global_id.rs b/crates/common_utils/src/id_type/global_id.rs
index 1e376dfe4de..bb296d7ef1a 100644
--- a/crates/common_utils/src/id_type/global_id.rs
+++ b/crates/common_utils/src/id_type/global_id.rs
@@ -134,7 +134,7 @@ impl GlobalId {
     ) -> Result<Self, GlobalIdError> {
         let length_id = LengthId::from(input_string)?;
         let input_string = &length_id.0 .0;
-        let (cell_id, remaining) = input_string
+        let (cell_id, _remaining) = input_string
             .split_once("_")
             .ok_or(GlobalIdError::InvalidIdFormat)?;
 
diff --git a/crates/common_utils/src/id_type/global_id/customer.rs b/crates/common_utils/src/id_type/global_id/customer.rs
index e0de91d8aed..014d56c9aad 100644
--- a/crates/common_utils/src/id_type/global_id/customer.rs
+++ b/crates/common_utils/src/id_type/global_id/customer.rs
@@ -1,6 +1,4 @@
-use error_stack::ResultExt;
-
-use crate::{errors, generate_id_with_default_len, generate_time_ordered_id_without_prefix, types};
+use crate::errors;
 
 crate::global_id_type!(
     GlobalCustomerId,
@@ -29,7 +27,7 @@ impl GlobalCustomerId {
 }
 
 impl TryFrom<GlobalCustomerId> for crate::id_type::CustomerId {
-    type Error = error_stack::Report<crate::errors::ValidationError>;
+    type Error = error_stack::Report<errors::ValidationError>;
 
     fn try_from(value: GlobalCustomerId) -> Result<Self, Self::Error> {
         Self::try_from(std::borrow::Cow::from(value.get_string_repr().to_owned()))
diff --git a/crates/common_utils/src/id_type/global_id/payment.rs b/crates/common_utils/src/id_type/global_id/payment.rs
index e43e33c619a..94ffbed57af 100644
--- a/crates/common_utils/src/id_type/global_id/payment.rs
+++ b/crates/common_utils/src/id_type/global_id/payment.rs
@@ -1,7 +1,7 @@
 use common_enums::enums;
 use error_stack::ResultExt;
 
-use crate::{errors, generate_id_with_default_len, generate_time_ordered_id_without_prefix, types};
+use crate::errors;
 
 crate::global_id_type!(
     GlobalPaymentId,
@@ -42,7 +42,6 @@ impl GlobalPaymentId {
 impl TryFrom<std::borrow::Cow<'static, str>> for GlobalPaymentId {
     type Error = error_stack::Report<errors::ValidationError>;
     fn try_from(value: std::borrow::Cow<'static, str>) -> Result<Self, Self::Error> {
-        use error_stack::ResultExt;
         let merchant_ref_id = super::GlobalId::from_string(value).change_context(
             errors::ValidationError::IncorrectValueProvided {
                 field_name: "payment_id",
@@ -86,7 +85,6 @@ impl GlobalAttemptId {
 impl TryFrom<std::borrow::Cow<'static, str>> for GlobalAttemptId {
     type Error = error_stack::Report<errors::ValidationError>;
     fn try_from(value: std::borrow::Cow<'static, str>) -> Result<Self, Self::Error> {
-        use error_stack::ResultExt;
         let global_attempt_id = super::GlobalId::from_string(value).change_context(
             errors::ValidationError::IncorrectValueProvided {
                 field_name: "payment_id",
diff --git a/crates/common_utils/src/id_type/global_id/refunds.rs b/crates/common_utils/src/id_type/global_id/refunds.rs
index 0aac9bf5808..eb8dad6b3aa 100644
--- a/crates/common_utils/src/id_type/global_id/refunds.rs
+++ b/crates/common_utils/src/id_type/global_id/refunds.rs
@@ -1,6 +1,6 @@
 use error_stack::ResultExt;
 
-use crate::{errors, generate_id_with_default_len, generate_time_ordered_id_without_prefix, types};
+use crate::errors;
 
 /// A global id that can be used to identify a refund
 #[derive(
@@ -36,7 +36,6 @@ impl GlobalRefundId {
 impl TryFrom<std::borrow::Cow<'static, str>> for GlobalRefundId {
     type Error = error_stack::Report<errors::ValidationError>;
     fn try_from(value: std::borrow::Cow<'static, str>) -> Result<Self, Self::Error> {
-        use error_stack::ResultExt;
         let merchant_ref_id = super::GlobalId::from_string(value).change_context(
             errors::ValidationError::IncorrectValueProvided {
                 field_name: "refund_id",

## 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 resolves the v2 warnings generated in common_utils.

### 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)?
-->
Tested sanity of common_utils on both v1 and v2

## 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`
- [ ] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
