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(), } } }