diff --git a/tokio-postgres/src/config.rs b/tokio-postgres/src/config.rs index eb4e5bdc..c026cca4 100644 --- a/tokio-postgres/src/config.rs +++ b/tokio-postgres/src/config.rs @@ -780,7 +780,7 @@ impl<'a> UrlParser<'a> { } fn take_all(&mut self) -> &'a str { - mem::replace(&mut self.s, "") + mem::take(&mut self.s) } fn eat_byte(&mut self) {