make AuthPassthrough generic

This commit is contained in:
Kevin Zimmerman
2023-07-26 09:44:31 -05:00
parent 6eb01e51a0
commit 81536a0bad

View File

@@ -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<S: ToString>(query: S, user: S, password: S) -> Self {
AuthPassthrough {
password: password.to_string(),
query: query.to_string(),