From 76cd380e5a70d76f4f73219385e906ea3d6be7f9 Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Wed, 8 Dec 2021 18:35:18 -0500 Subject: [PATCH] clippy --- tokio-postgres/src/config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {