From d930d7992f2af7a06a6f5edfb351280081099338 Mon Sep 17 00:00:00 2001 From: sgoudham Date: Fri, 24 Jun 2022 22:33:13 +0100 Subject: [PATCH] refactor: Change 'to_owned()' to 'into()' --- src/git.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/git.rs b/src/git.rs index 16d0422..7e09577 100644 --- a/src/git.rs +++ b/src/git.rs @@ -156,9 +156,9 @@ fn trim(bytes: &[u8]) -> Result { impl Url { pub(crate) fn new(protocol: &str, domain: Domain, path: &str) -> Self { Self { - protocol: protocol.to_owned(), + protocol: protocol.into(), domain, - path: path.to_owned(), + path: path.into(), } } }