Skip to content

Commit 9520d20

Browse files
committed
Resolve ugly generic inline
1 parent 714ef5a commit 9520d20

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/client/mod.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,10 @@ impl InfluxDbClient {
4343
///
4444
/// let _client = InfluxDbClient::new("http://localhost:8086", "test");
4545
/// ```
46-
pub fn new<S>(url: S, database: S) -> Self
46+
pub fn new<S1, S2>(url: S1, database: S2) -> Self
4747
where
48-
S: Into<String>,
48+
S1: Into<String>,
49+
S2: Into<String>,
4950
{
5051
InfluxDbClient {
5152
url: url.into(),

0 commit comments

Comments
 (0)