From 81536a0bad056b7005470737612597cdecd2cf1e Mon Sep 17 00:00:00 2001 From: Kevin Zimmerman <4733573+kczimm@users.noreply.github.com> Date: Wed, 26 Jul 2023 09:44:31 -0500 Subject: [PATCH] make AuthPassthrough generic --- src/auth_passthrough.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/auth_passthrough.rs b/src/auth_passthrough.rs index fc0f6dc..07ce312 100644 --- a/src/auth_passthrough.rs +++ b/src/auth_passthrough.rs @@ -12,7 +12,7 @@ pub struct AuthPassthrough { impl AuthPassthrough { /// Initializes an AuthPassthrough. - pub fn new(query: &str, user: &str, password: &str) -> Self { + pub fn new(query: S, user: S, password: S) -> Self { AuthPassthrough { password: password.to_string(), query: query.to_string(),