mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 00:49:42 +08:00
chore: address Rust 1.72 clippy lints (#2011)
Co-authored-by: Sampras Lopes <lsampras@pm.me>
This commit is contained in:
@ -70,6 +70,9 @@ impl Default for ConnectorAuthentication {
|
||||
|
||||
#[allow(dead_code)]
|
||||
impl ConnectorAuthentication {
|
||||
/// # Panics
|
||||
///
|
||||
/// Will panic if `CONNECTOR_AUTH_FILE_PATH` env is not set
|
||||
#[allow(clippy::expect_used)]
|
||||
pub fn new() -> Self {
|
||||
// Do `export CONNECTOR_AUTH_FILE_PATH="/hyperswitch/crates/router/tests/connectors/sample_auth.toml"`
|
||||
@ -99,6 +102,9 @@ impl ConnectorAuthenticationMap {
|
||||
&self.0
|
||||
}
|
||||
|
||||
/// # Panics
|
||||
///
|
||||
/// Will panic if `CONNECTOR_AUTH_FILE_PATH` env is not set
|
||||
#[allow(clippy::expect_used)]
|
||||
pub fn new() -> Self {
|
||||
// Do `export CONNECTOR_AUTH_FILE_PATH="/hyperswitch/crates/router/tests/connectors/sample_auth.toml"`
|
||||
|
||||
Reference in New Issue
Block a user